forked from opensci/piflow
Update OracleRead.scala
fix a bug about (ORA-00933: SQL command not properly ended)
This commit is contained in:
parent
b855031fd8
commit
2e36dd9565
|
@ -57,7 +57,7 @@ class OracleRead extends ConfigurableStop{
|
|||
|
||||
override def perform(in: JobInputStream, out: JobOutputStream, pec: JobContext): Unit = {
|
||||
val spark = pec.get[SparkSession]()
|
||||
val dbtable = "( " + sql + ") AS Temp"
|
||||
val dbtable = "( " + sql + ")temp"
|
||||
val jdbcDF = spark.read.format("jdbc")
|
||||
.option("url", url)
|
||||
.option("driver", "oracle.jdbc.OracleDriver")
|
||||
|
|
Loading…
Reference in New Issue