Z1Wu commented on code in PR #9280:
URL: https://github.com/apache/incubator-gluten/pull/9280#discussion_r2039938400
##########
gluten-ut/test/src/test/scala/org/apache/gluten/extension/GlutenExtensionRewriteRuleSuite.scala:
##########
@@ -62,4 +62,21 @@ class GlutenExtensionRewriteRuleSuite extends
WholeStageTransformerSuite {
}
)
}
+
+ test("GLUTEN-9279 - Not Pull out expression to avoid invalid reference
binding") {
+ withTable("t") {
+ sql("CREATE TABLE t(f1 String, f2 String, f3 String, f4 String) USING
CSV")
Review Comment:
If we not add `USING CSV`, Spark will create `Hive serde table` by default,
which requires some hive-related settings being configured in Spark Context.
```
WARN org.apache.spark.sql.catalyst.analysis.ResolveSessionCatalog: A Hive
serde table will be created as there is no table provider specified. You can
set spark.sql.legacy.createHiveTableByDefault to false so that native data
source table will be created instead.
[NOT_SUPPORTED_COMMAND_WITHOUT_HIVE_SUPPORT] CREATE Hive TABLE (AS SELECT)
is not supported, if you want to enable it, please set
"spark.sql.catalogImplementation" to "hive".;
'CreateTable `spark_catalog`.`default`.`t`,
org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, ErrorIfExists
```
--
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]