atom feed3 messages in org.apache.spark.issues[jira] [Commented] (SPARK-22303) [SQL...
FromSent OnAttachments
Sean Owen (JIRA)Oct 17, 2017 11:38 pm 
Kohki Nishio (JIRA)Oct 21, 2017 8:04 pm 
Apache Spark (JIRA)Oct 21, 2017 8:05 pm 
Subject:[jira] [Commented] (SPARK-22303) [SQL] Getting java.sql.SQLException: Unsupported type 101 for BINARY_DOUBLE
From:Apache Spark (JIRA) (ji@apache.org)
Date:Oct 21, 2017 8:05:00 pm
List:org.apache.spark.issues

[
https://issues.apache.org/jira/browse/SPARK-22303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16214164#comment-16214164
]

Apache Spark commented on SPARK-22303:

User 'taroplus' has created a pull request for this issue: https://github.com/apache/spark/pull/19548

[SQL] Getting java.sql.SQLException: Unsupported type 101 for BINARY_DOUBLE

---------------------------------------------------------------------------

Key: SPARK-22303 URL: https://issues.apache.org/jira/browse/SPARK-22303 Project: Spark Issue Type: Bug Components: SQL Affects Versions: 2.2.0 Reporter: Kohki Nishio Priority: Minor

When a table contains columns such as BINARY_DOUBLE or BINARY_FLOAT, this JDBC
connector throws SQL exception {code} java.sql.SQLException: Unsupported type 101 at
org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$.org$apache$spark$sql$execution$datasources$jdbc$JdbcUtils$$getCatalystType(JdbcUtils.scala:235) at
org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$$anonfun$8.apply(JdbcUtils.scala:292) at
org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$$anonfun$8.apply(JdbcUtils.scala:292) at scala.Option.getOrElse(Option.scala:121) at
org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$.getSchema(JdbcUtils.scala:291) at
org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$.resolveTable(JDBCRDD.scala:64) at
org.apache.spark.sql.execution.datasources.jdbc.JDBCRelation.<init>(JDBCRelation.scala:113) at
org.apache.spark.sql.execution.datasources.jdbc.JdbcRelationProvider.createRelation(JdbcRelationProvider.scala:47) at
org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:306) at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:178) at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:146) {code} these types are Oracle specific ones, described here https://docs.oracle.com/cd/E11882_01/timesten.112/e21642/types.htm#TTSQL148