|
1 | 1 | -- Automatically generated by SQLQueryTestSuite |
2 | | --- Number of queries: 13 |
| 2 | +-- Number of queries: 14 |
3 | 3 |
|
4 | 4 |
|
5 | 5 | -- !query 0 |
@@ -27,90 +27,100 @@ one 1 |
27 | 27 |
|
28 | 28 |
|
29 | 29 | -- !query 3 |
30 | | -select * from values ("one", 1), ("two", 2) as data(a, b) |
| 30 | +select * from values ("one", 1), ("two", 2), ("three", null) as data(a, b) |
31 | 31 | -- !query 3 schema |
32 | 32 | struct<a:string,b:int> |
33 | 33 | -- !query 3 output |
34 | 34 | one 1 |
| 35 | +three NULL |
35 | 36 | two 2 |
36 | 37 |
|
37 | 38 |
|
38 | 39 | -- !query 4 |
39 | | -select * from values ("one", 1), ("two", 2L) as data(a, b) |
| 40 | +select * from values ("one", null), ("two", null) as data(a, b) |
40 | 41 | -- !query 4 schema |
41 | | -struct<a:string,b:bigint> |
| 42 | +struct<a:string,b:null> |
42 | 43 | -- !query 4 output |
43 | | -one 1 |
44 | | -two 2 |
| 44 | +one NULL |
| 45 | +two NULL |
45 | 46 |
|
46 | 47 |
|
47 | 48 | -- !query 5 |
48 | | -select * from values ("one", 1 + 0), ("two", 1 + 3L) as data(a, b) |
| 49 | +select * from values ("one", 1), ("two", 2L) as data(a, b) |
49 | 50 | -- !query 5 schema |
50 | 51 | struct<a:string,b:bigint> |
51 | 52 | -- !query 5 output |
52 | 53 | one 1 |
53 | | -two 4 |
| 54 | +two 2 |
54 | 55 |
|
55 | 56 |
|
56 | 57 | -- !query 6 |
57 | | -select * from values ("one", array(0, 1)), ("two", array(2, 3)) as data(a, b) |
| 58 | +select * from values ("one", 1 + 0), ("two", 1 + 3L) as data(a, b) |
58 | 59 | -- !query 6 schema |
59 | | -struct<a:string,b:array<int>> |
| 60 | +struct<a:string,b:bigint> |
60 | 61 | -- !query 6 output |
61 | | -one [0,1] |
62 | | -two [2,3] |
| 62 | +one 1 |
| 63 | +two 4 |
63 | 64 |
|
64 | 65 |
|
65 | 66 | -- !query 7 |
66 | | -select * from values ("one", 2.0), ("two", 3.0D) as data(a, b) |
| 67 | +select * from values ("one", array(0, 1)), ("two", array(2, 3)) as data(a, b) |
67 | 68 | -- !query 7 schema |
68 | | -struct<a:string,b:double> |
| 69 | +struct<a:string,b:array<int>> |
69 | 70 | -- !query 7 output |
70 | | -one 2.0 |
71 | | -two 3.0 |
| 71 | +one [0,1] |
| 72 | +two [2,3] |
72 | 73 |
|
73 | 74 |
|
74 | 75 | -- !query 8 |
75 | | -select * from values ("one", 2.0), ("two") as data(a, b) |
| 76 | +select * from values ("one", 2.0), ("two", 3.0D) as data(a, b) |
76 | 77 | -- !query 8 schema |
77 | | -struct<> |
| 78 | +struct<a:string,b:double> |
78 | 79 | -- !query 8 output |
79 | | -org.apache.spark.sql.AnalysisException |
80 | | -expected 2 columns but found 1 columns in row 1; line 1 pos 14 |
| 80 | +one 2.0 |
| 81 | +two 3.0 |
81 | 82 |
|
82 | 83 |
|
83 | 84 | -- !query 9 |
84 | | -select * from values ("one", array(0, 1)), ("two", struct(1, 2)) as data(a, b) |
| 85 | +select * from values ("one", 2.0), ("two") as data(a, b) |
85 | 86 | -- !query 9 schema |
86 | 87 | struct<> |
87 | 88 | -- !query 9 output |
88 | 89 | org.apache.spark.sql.AnalysisException |
89 | | -incompatible types found in column 1 for inline table; line 1 pos 14 |
| 90 | +expected 2 columns but found 1 columns in row 1; line 1 pos 14 |
90 | 91 |
|
91 | 92 |
|
92 | 93 | -- !query 10 |
93 | | -select * from values ("one"), ("two") as data(a, b) |
| 94 | +select * from values ("one", array(0, 1)), ("two", struct(1, 2)) as data(a, b) |
94 | 95 | -- !query 10 schema |
95 | 96 | struct<> |
96 | 97 | -- !query 10 output |
97 | 98 | org.apache.spark.sql.AnalysisException |
98 | | -expected 2 columns but found 1 in first row; line 1 pos 14 |
| 99 | +incompatible types found in column 1 for inline table; line 1 pos 14 |
99 | 100 |
|
100 | 101 |
|
101 | 102 | -- !query 11 |
102 | | -select * from values ("one", random_not_exist_func(1)), ("two", 2) as data(a, b) |
| 103 | +select * from values ("one"), ("two") as data(a, b) |
103 | 104 | -- !query 11 schema |
104 | 105 | struct<> |
105 | 106 | -- !query 11 output |
106 | 107 | org.apache.spark.sql.AnalysisException |
107 | | -Undefined function: 'random_not_exist_func'. This function is neither a registered temporary function nor a permanent function registered in the database 'default'.; line 1 pos 29 |
| 108 | +expected 2 columns but found 1 in first row; line 1 pos 14 |
108 | 109 |
|
109 | 110 |
|
110 | 111 | -- !query 12 |
111 | | -select * from values ("one", count(1)), ("two", 2) as data(a, b) |
| 112 | +select * from values ("one", random_not_exist_func(1)), ("two", 2) as data(a, b) |
112 | 113 | -- !query 12 schema |
113 | 114 | struct<> |
114 | 115 | -- !query 12 output |
115 | 116 | org.apache.spark.sql.AnalysisException |
| 117 | +Undefined function: 'random_not_exist_func'. This function is neither a registered temporary function nor a permanent function registered in the database 'default'.; line 1 pos 29 |
| 118 | + |
| 119 | + |
| 120 | +-- !query 13 |
| 121 | +select * from values ("one", count(1)), ("two", 2) as data(a, b) |
| 122 | +-- !query 13 schema |
| 123 | +struct<> |
| 124 | +-- !query 13 output |
| 125 | +org.apache.spark.sql.AnalysisException |
116 | 126 | cannot evaluate expression count(1) in inline table definition; line 1 pos 29 |
0 commit comments