1

I am trying to run below statement in spark to unload data from oracle using select statement...

val query_result = spark.read.format("jdbc")
           .option("url", "jdbc:oracle:thin:@****:****:****")
           .option("user", "user1").option("password", "****")
           .option("query", "SELECT * FROM TABLE")
           .option("driver", "oracle.jdbc.driver.OracleDriver")
           .option("inferSchema", "true")
           .load()

But i was getting below error

java.sql.SQLSyntaxErrorException: ORA-00907: missing right parenthesis
mazaneicha
  • 8,794
  • 4
  • 33
  • 52

0 Answers0