-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dataflow-expression: Function names are case-insensitive
SQL function names are case-insensitive, but we only accepted all-lowercase versions of built-in functions. This commit modifies expr lowering to compare function names case-insensitively (by calling `to_lowercase` before matching on the name of the function). Change-Id: Iac210a890c9702924688e3d9eeb42ad3fd374c6f Reviewed-on: https://gerrit.readyset.name/c/readyset/+/5889 Tested-by: Buildkite CI Reviewed-by: Dan Wilbanks <dan@readyset.io>
- Loading branch information
1 parent
09b705e
commit a0ecb99
Showing
2 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
statement ok | ||
create table t1 (x int, y int); | ||
|
||
statement ok | ||
insert into t1 (x, y) values (1, null); | ||
|
||
query II nosort | ||
select x, COALESCE(y, 2) FROM t1; | ||
---- | ||
1 | ||
2 |