-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plan and optimize generating expressions (#778)
- Loading branch information
Showing
5 changed files
with
73 additions
and
16 deletions.
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
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
10 changes: 10 additions & 0 deletions
10
crates/arroyo-planner/src/test/queries/subscript_in_virtual.sql
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,10 @@ | ||
create table input ( | ||
length JSON, | ||
diff INT GENERATED ALWAYS AS (extract_json(length, '$.old')[1]) STORED | ||
) with ( | ||
connector = 'sse', | ||
endpoint = 'https://localhost:9091', | ||
format = 'json' | ||
); | ||
|
||
select * from input; |
11 changes: 11 additions & 0 deletions
11
crates/arroyo-planner/src/test/queries/virtual_bad_schema.sql
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 @@ | ||
--fail=Schema error: No field named notfield. Valid fields are input.length. | ||
create table input ( | ||
length JSON, | ||
diff INT GENERATED ALWAYS AS (notfield) STORED | ||
) with ( | ||
connector = 'sse', | ||
endpoint = 'https://localhost:9091', | ||
format = 'json' | ||
); | ||
|
||
select * from input; |