wuchunfu commented on a change in pull request #1410:
URL:
https://github.com/apache/incubator-seatunnel/pull/1410#discussion_r823421018
##########
File path:
seatunnel-connectors/seatunnel-connector-spark-jdbc/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc2/DefaultSource.scala
##########
@@ -102,6 +102,6 @@ class DefaultSource extends CreatableRelationProvider with
RelationProvider
conn.close()
}
- createRelation(sqlContext, parameters)
+ JDBCRelation(Array.empty, new
JDBCOptions(parameters))(sqlContext.sparkSession)
}
Review comment:
@zhaomin1423 I still do not recommend modifying this code, please refer
to:
`https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcRelationProvider.scala`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]