You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/08/24 18:17:06 UTC
[GitHub] [spark] allisonwang-db commented on a change in pull request #33802: [SPARK-36488][SQL] Improve error message with quotedRegexColumnNames
allisonwang-db commented on a change in pull request #33802:
URL: https://github.com/apache/spark/pull/33802#discussion_r695089447
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala
##########
@@ -173,7 +174,8 @@ trait CheckAnalysis extends PredicateHelper with LookupCatalog {
case s: Star =>
withPosition(s) {
- throw QueryCompilationErrors.invalidStarUsageError(operator.nodeName)
+ throw QueryCompilationErrors.invalidStarUsageError(operator.nodeName,
+ conf.supportQuotedRegexColumnName)
Review comment:
Is this correct? Even if `supportQuotedRegexColumnName` is true, a `Star` expression is not necessarily a regexp expression.
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala
##########
@@ -3020,6 +3020,14 @@ class DataFrameSuite extends QueryTest
}
}
}
+
+ test("SPARK-36488: Regular expression expansion should fail with a meaningful message") {
Review comment:
This test should be added in `AnalysisErrorSuite`. Also, could you add another test for invalid star usage when `SUPPORT_QUOTED_REGEX_COLUMN_NAME` is true?
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org