forked from GreptimeTeam/greptimedb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent filter pushdown in distributed planner (GreptimeTeam#1806)
* fix: prevent filter pushdown in distributed planner Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix metadata Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
- Loading branch information
Showing
4 changed files
with
105 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
CREATE TABLE host ( | ||
ts TIMESTAMP(3) TIME INDEX, | ||
host STRING PRIMARY KEY, | ||
val DOUBLE, | ||
); | ||
|
||
Affected Rows: 0 | ||
|
||
INSERT INTO TABLE host VALUES | ||
(0, 'a+b', 1.0), | ||
(1, 'b+c', 2.0), | ||
(2, 'a', 3.0), | ||
(3, 'c', 4.0); | ||
|
||
Affected Rows: 4 | ||
|
||
SELECT * FROM host WHERE host LIKE '%+%'; | ||
|
||
+-------------------------+------+-----+ | ||
| ts | host | val | | ||
+-------------------------+------+-----+ | ||
| 1970-01-01T00:00:00 | a+b | 1.0 | | ||
| 1970-01-01T00:00:00.001 | b+c | 2.0 | | ||
+-------------------------+------+-----+ | ||
|
||
DROP TABLE host; | ||
|
||
Affected Rows: 1 | ||
|
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,15 @@ | ||
CREATE TABLE host ( | ||
ts TIMESTAMP(3) TIME INDEX, | ||
host STRING PRIMARY KEY, | ||
val DOUBLE, | ||
); | ||
|
||
INSERT INTO TABLE host VALUES | ||
(0, 'a+b', 1.0), | ||
(1, 'b+c', 2.0), | ||
(2, 'a', 3.0), | ||
(3, 'c', 4.0); | ||
|
||
SELECT * FROM host WHERE host LIKE '%+%'; | ||
|
||
DROP TABLE host; |