You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "jinchengchenghh (via GitHub)" <gi...@apache.org> on 2024/05/10 08:15:31 UTC

Re: [PR] [VL] Add InsertIntoHadoopFsRelationCommand test case for csv format [incubator-gluten]

jinchengchenghh commented on code in PR #5681:
URL: https://github.com/apache/incubator-gluten/pull/5681#discussion_r1596429182


##########
backends-velox/src/test/scala/org/apache/gluten/execution/TestOperator.scala:
##########
@@ -515,6 +515,21 @@ class TestOperator extends VeloxWholeStageTransformerSuite {
     }
   }
 
+  test("insert into select from csv") {
+    val filePath = rootPath + "/datasource/csv/student.csv"
+    val df = spark.read
+      .format("csv")
+      .option("header", "true")
+      .load(filePath)
+    df.createOrReplaceTempView("student")
+    spark.sql("create table insert_csv_t(Name string, Language string) using parquet;")

Review Comment:
   withTempTable, otherwise, it may cannot run again



-- 
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: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org