pan3793 commented on code in PR #6911:
URL: https://github.com/apache/kyuubi/pull/6911#discussion_r1950579267
##########
extensions/spark/kyuubi-spark-lineage/src/test/scala/org/apache/kyuubi/plugin/lineage/helper/SparkSQLLineageParserHelperSuite.scala:
##########
@@ -1442,6 +1448,39 @@ class SparkSQLLineageParserHelperSuite extends
KyuubiFunSuite
}
}
+ test("test directory to table") {
+ val inputFile = getClass.getResource("/").getPath + "input_file"
+ val sourceFile = File(inputFile).createFile()
+ spark.sql(
+ s"""
+ | CREATE OR REPLACE TEMPORARY VIEW temp_view
+ |(
+ | `a` STRING COMMENT '',
+ | `b` STRING COMMENT ''
+ |)
+ |USING csv OPTIONS(
+ | sep='\t',
+ | path='${sourceFile.path}'
+ |);
+ |""".stripMargin).collect()
Review Comment:
```suggestion
s"""
|CREATE OR REPLACE TEMPORARY VIEW temp_view (
| `a` STRING COMMENT '',
| `b` STRING COMMENT ''
|) USING csv OPTIONS(
| sep='\t',
| path='${sourceFile.path}'
|)
|""".stripMargin).collect()
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]