Skip to content

Conversation

@wangyum
Copy link
Member

@wangyum wangyum commented Jun 4, 2017

What changes were proposed in this pull request?

Support can config OracleDialect whether convert number(1) to BooleanType, autoConvertNumber2Boolean default is true, set false to keep number(1) to IntegerType, usage:

val jdbcUrl = "jdbc:oracle:thin:@127.0.0.1:1521/test"

val props = new java.util.Properties()
props.put("user", "user")
props.put("password", "password")
props.put("driver", "oracle.jdbc.driver.OracleDriver")
props.put("autoConvertNumber2Boolean", "false")

val jdbcDF = spark.read.jdbc(jdbcUrl, "TableName", props)
jdbcDF.show()

How was this patch tested?

unit tests

@SparkQA
Copy link

SparkQA commented Jun 4, 2017

Test build #77720 has finished for PR 18195 at commit febdf69.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vivekdixit05
Copy link

Any updates on this, when and which version we can get this fix.

@wangyum
Copy link
Member Author

wangyum commented Jun 23, 2017

@vivekdixit05 I'm working on another PR #18266, That may be more general. I'll finish it soon.

@wangyum wangyum closed this Jun 23, 2017
@wangyum wangyum deleted the SPARK-20921 branch September 15, 2017 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants