You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a hint about normalization in error message (#14089) (#14113)
* Add a hint about normalization in error message (#14089)
* normalization suggestion is only shown when a column name matches schema
---------
Co-authored-by: Sergey Zhukov <szhukov@aligntech.com>
Copy file name to clipboardExpand all lines: datafusion/sqllogictest/test_files/select.slt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1799,7 +1799,7 @@ select a + b from (select 1 as a, 2 as b, 1 as "a + b");
1799
1799
3
1800
1800
1801
1801
# Can't reference an output column by expression over projection.
1802
-
query error DataFusion error: Schema error: No field named a\. Valid fields are "a \+ Int64\(1\)"\.
1802
+
query error DataFusion error: Schema error: No field named a. Valid fields are "a \+ Int64\(1\)"\.
1803
1803
select a + 1 from (select a+1 from (select 1 as a));
1804
1804
1805
1805
query I
@@ -1834,5 +1834,5 @@ statement ok
1834
1834
DROP TABLE test;
1835
1835
1836
1836
# Can't reference an unqualified column by a qualified name
1837
-
query error DataFusion error: Schema error: No field named t1\.v1\. Valid fields are "t1\.v1"\.
1837
+
query error DataFusion error: Schema error: No field named t1.v1. Column names are case sensitive. You can use double quotes to refer to the "t1.v1" column or set the datafusion.sql_parser.enable_ident_normalization configuration. Valid fields are "t1.v1".
0 commit comments