[ https://issues.apache.org/jira/browse/SPARK-7345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14536805#comment-14536805 ]
Apache Spark commented on SPARK-7345: ------------------------------------- User 'osidorkin' has created a pull request for this issue: https://github.com/apache/spark/pull/6032 > 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: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org