allisonport-db commented on code in PR #38823:
URL: https://github.com/apache/spark/pull/38823#discussion_r1117614206
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceStrategy.scala:
##########
@@ -136,6 +136,13 @@ case class DataSourceAnalysis(analyzer: Analyzer) extends
Rule[LogicalPlan] {
val newSchema: StructType =
ResolveDefaultColumns.constantFoldCurrentDefaultsToExistDefaults(
tableDesc.schema, tableDesc.provider, "CREATE TABLE", false)
+
+ if (GeneratedColumn.hasGeneratedColumns(newSchema)) {
+ throw QueryCompilationErrors.generatedColumnsUnsupported(
+ Seq(tableDesc.identifier.catalog.get,
tableDesc.identifier.database.get,
+ tableDesc.identifier.table))
+ }
Review Comment:
I can add a new error class for it if you think it's necessary?
--
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]