kosiew commented on code in PR #27265:
URL: https://github.com/apache/datafusion/pull/27265#discussion_r4766878177
##########
datafusion/sqllogictest/test_files/regexp/regexp_count.slt:
##########
@@ -391,8 +400,11 @@ SELECT regexp_count('abc', 'a(b');
query error DataFusion error: Execution error: Regular expression did not
compile: regex parse error:
SELECT regexp_count('abc', 'a', 1, 'z');
-query error DataFusion error: Error during planning: regexp_count\(\) does not
support the "global" option
+query error
Review Comment:
Could we clarify that the unsupported global flag is rejected before regex
parsing, unlike the preceding invalid-flag case? The same clarification would
help in regexp_instr.slt.
##########
datafusion/sqllogictest/test_files/identifiers.slt:
##########
@@ -77,17 +77,37 @@ drop table case_insensitive_test
statement ok
CREATE TABLE test("Column1" string) AS VALUES ('content1');
-statement error DataFusion error: Schema error: No field named column1\. Did
you mean 'test\."Column1"'\?\nColumn names are case sensitive\. You can use
double quotes to refer to the test\."Column1" column or disable the
datafusion\.sql_parser\.enable_ident_normalization configuration\.\nValid
fields are test\."Column1"\.
+statement error
SELECT COLumn1 from test
+----
+DataFusion error: Schema error: No field named column1. Did you mean
'test."Column1"'?
+Column names are case sensitive. You can use double quotes to refer to the
test."Column1" column or disable the
datafusion.sql_parser.enable_ident_normalization configuration.
+Valid fields are test."Column1".
+
-statement error DataFusion error: Schema error: No field named column1\. Did
you mean 'test\."Column1"'\?\nColumn names are case sensitive\. You can use
double quotes to refer to the test\."Column1" column or disable the
datafusion\.sql_parser\.enable_ident_normalization configuration\.\nValid
fields are test\."Column1"\.
+statement error
SELECT Column1 from test
+----
+DataFusion error: Schema error: No field named column1. Did you mean
'test."Column1"'?
+Column names are case sensitive. You can use double quotes to refer to the
test."Column1" column or disable the
datafusion.sql_parser.enable_ident_normalization configuration.
+Valid fields are test."Column1".
+
-statement error DataFusion error: Schema error: No field named column1\. Did
you mean 'test\."Column1"'\?\nColumn names are case sensitive\. You can use
double quotes to refer to the test\."Column1" column or disable the
datafusion\.sql_parser\.enable_ident_normalization configuration\.\nValid
fields are test\."Column1"\.
+statement error
SELECT column1 from test
+----
+DataFusion error: Schema error: No field named column1. Did you mean
'test."Column1"'?
+Column names are case sensitive. You can use double quotes to refer to the
test."Column1" column or disable the
datafusion.sql_parser.enable_ident_normalization configuration.
+Valid fields are test."Column1".
+
-statement error DataFusion error: Schema error: No field named column1\. Did
you mean 'test\."Column1"'\?\nColumn names are case sensitive\. You can use
double quotes to refer to the test\."Column1" column or disable the
datafusion\.sql_parser\.enable_ident_normalization configuration\.\nValid
fields are test\."Column1"\.
+statement error
Review Comment:
Could we add a comment explaining that quoted identifiers must match the
stored case, even when identifier normalization does not apply?
--
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]