-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(query): RawValueSource::parse_fallback fully parse input (#17340)
* test * update * fix test * fix * add test
- Loading branch information
1 parent
f6c0c63
commit 7969d36
Showing
8 changed files
with
139 additions
and
47 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
---------- Input Data ---------- | ||
"(0, 1, 2), (3,4,5)" | ||
---------- Input Column Types ---------- | ||
[Number(Int16), Number(Int16), Number(Int16)] | ||
---------- Output --------- | ||
+----------+----------+----------+ | ||
| Column 0 | Column 1 | Column 2 | | ||
+----------+----------+----------+ | ||
| 0 | 1 | 2 | | ||
| 3 | 4 | 5 | | ||
+----------+----------+----------+ | ||
|
||
|
||
---------- Input Data ---------- | ||
"(0, 1, 2), (3,4,5), " | ||
---------- Input Column Types ---------- | ||
[Number(Int16), Number(Int16), Number(Int16)] | ||
---------- Output --------- | ||
BadDataValueType. Code: 1010, Text = Must start with parentheses. | ||
|
||
|
||
---------- Input Data ---------- | ||
"('', '', '')" | ||
---------- Input Column Types ---------- | ||
[Number(Int16), Number(Int16), Number(Int16)] | ||
---------- Output --------- | ||
Unimplemented. Code: 1002, Text = fallback. | ||
|
||
|
||
---------- Input Data ---------- | ||
"( 1, '', '2022-10-01')" | ||
---------- Input Column Types ---------- | ||
[Number(Int16), String, Date] | ||
---------- Output --------- | ||
+----------+----------+--------------+ | ||
| Column 0 | Column 1 | Column 2 | | ||
+----------+----------+--------------+ | ||
| 1 | '' | '2022-10-01' | | ||
+----------+----------+--------------+ | ||
|
||
|
||
---------- Input Data ---------- | ||
"(1, 2, 3), (1, 1, 1), (1, 1, 1);" | ||
---------- Input Column Types ---------- | ||
[Number(Int16), Number(Int16), Number(Int16)] | ||
---------- Output --------- | ||
+----------+----------+----------+ | ||
| Column 0 | Column 1 | Column 2 | | ||
+----------+----------+----------+ | ||
| 1 | 2 | 3 | | ||
| 1 | 1 | 1 | | ||
| 1 | 1 | 1 | | ||
+----------+----------+----------+ | ||
|
||
|
||
---------- Input Data ---------- | ||
"(1, 2, 3), (1, 1, 1), (1, 1, 1); " | ||
---------- Input Column Types ---------- | ||
[Number(Int16), Number(Int16), Number(Int16)] | ||
---------- Output --------- | ||
+----------+----------+----------+ | ||
| Column 0 | Column 1 | Column 2 | | ||
+----------+----------+----------+ | ||
| 1 | 2 | 3 | | ||
| 1 | 1 | 1 | | ||
| 1 | 1 | 1 | | ||
+----------+----------+----------+ | ||
|
||
|
||
---------- Input Data ---------- | ||
"(1.2, -2.9, 3.55), (3.12e2, 3.45e+3, -1.9e-3);" | ||
---------- Input Column Types ---------- | ||
[Number(Int16), Number(Int16), Number(Int16)] | ||
---------- Output --------- | ||
+----------+----------+----------+ | ||
| Column 0 | Column 1 | Column 2 | | ||
+----------+----------+----------+ | ||
| 1 | -3 | 4 | | ||
| 312 | 3450 | 0 | | ||
+----------+----------+----------+ | ||
|
||
|
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
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