forked from apache/horaedb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathselect_1.result
66 lines (33 loc) · 1.64 KB
/
select_1.result
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
SELECT 1;
Int64(1),
Int64(1),
SELECT x;
Failed to execute query, err: Server(ServerError { code: 500, msg: "Failed to create plan, query: SELECT x;. Caused by: Failed to create plan, err:Failed to generate datafusion plan, err:Schema error: No field named x." })
SELECT 'a';
Utf8("a"),
String("a"),
SELECT NOT(1=1);
NOT Int64(1) = Int64(1),
Boolean(false),
SELECT NOT(1);
Failed to execute query, err: Server(ServerError { code: 500, msg: "Failed to execute plan, sql: SELECT NOT(1);. Caused by: Internal error, msg:Failed to execute interpreter, err:Failed to execute select, err:Failed to execute logical plan, err:Failed to do logical optimization, err:DataFusion Failed to optimize logical plan, err:Optimizer rule 'simplify_expressions' failed\ncaused by\nInternal error: NOT 'Literal { value: Int64(1) }' can't be evaluated because the expression's type is Int64, not boolean or NULL. This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker." })
SELECT TRUE;
Boolean(true),
Boolean(true),
SELECT FALSE;
Boolean(false),
Boolean(false),
SELECT NOT(TRUE);
NOT Boolean(true),
Boolean(false),
SELECT 10 - 2 * 3;
Int64(10) - Int64(2) * Int64(3),
Int64(4),
SELECT (10 - 2) * 3;
Int64(10) - Int64(2) * Int64(3),
Int64(24),
SELECT "That is not good.";
Utf8("That is not good."),
String("That is not good."),
SELECT *;
Failed to execute query, err: Server(ServerError { code: 500, msg: "Failed to create plan, query: SELECT *;. Caused by: Failed to create plan, err:Failed to generate datafusion plan, err:Error during planning: SELECT * with no tables specified is not valid" })