Oleg Sidorkin created SPARK-7345:
------------------------------------
Summary: Spark cannot detect renamed columns using JDBC connector
Key: SPARK-7345
URL: https://issues.apache.org/jira/browse/SPARK-7345
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 1.3.1
Reporter: Oleg Sidorkin
sqlContext.load("jdbc", Map("url" -> "some url", "dbtable" -> "(select column
as column1, column as column2 from table)")) creates DataFrame with wrong
schema which fails on action.
Most likely JDBC SQL connector uses getColumnName instead of getColumnLabel to
deduce DataFrame schema from ResultSetMetaData.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]