File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -1314,13 +1314,11 @@ SqlSelect SqlSelect() :
1314
1314
(
1315
1315
<STREAM> {
1316
1316
keywords.add(SqlSelectKeyword.STREAM.symbol(getPos()));
1317
- traindbKeywords.add(SqlSelectKeyword.STREAM.symbol(getPos()));
1318
1317
}
1319
1318
)?
1320
1319
(
1321
1320
keyword = AllOrDistinct() {
1322
1321
keywords.add(keyword);
1323
- traindbKeywords.add(keyword);
1324
1322
}
1325
1323
)?
1326
1324
{
Original file line number Diff line number Diff line change @@ -74,4 +74,25 @@ WHERE a.product_id = b.product_id;
74
74
+---------+
75
75
(1 row)
76
76
77
- !ok
77
+ !ok
78
+
79
+ SELECT DISTINCT reordered FROM instacart_small.order_products ORDER BY reordered;
80
+ +-----------+
81
+ | reordered |
82
+ +-----------+
83
+ | 0 |
84
+ | 1 |
85
+ +-----------+
86
+ (2 rows)
87
+
88
+ !ok
89
+
90
+ SELECT count(DISTINCT reordered) as distinct_cnt FROM instacart_small.order_products;
91
+ +--------------+
92
+ | distinct_cnt |
93
+ +--------------+
94
+ | 2 |
95
+ +--------------+
96
+ (1 row)
97
+
98
+ !ok
You can’t perform that action at this time.
0 commit comments