You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sql/core/src/test/resources/sql-tests/results/bitwise.sql.out
+70-1Lines changed: 70 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
-- Automatically generated by SQLQueryTestSuite
2
-
-- Number of queries: 20
2
+
-- Number of queries: 27
3
3
4
4
5
5
-- !query 0
@@ -162,3 +162,72 @@ struct<>
162
162
-- !query 19 output
163
163
org.apache.spark.sql.AnalysisException
164
164
cannot resolve 'bit_count('a')' due to data type mismatch: argument 1 requires (integral or boolean) type, however, ''a'' is of string type.; line 1 pos 7
165
+
166
+
167
+
-- !query 20
168
+
CREATE OR REPLACE TEMPORARY VIEW bitwise_test AS SELECT * FROM VALUES
169
+
(1, 1, 1, 1L),
170
+
(2, 3, 4, null),
171
+
(7, 7, 7, 3L) AS bitwise_test(b1, b2, b3, b4)
172
+
-- !query 20 schema
173
+
struct<>
174
+
-- !query 20 output
175
+
176
+
177
+
178
+
-- !query 21
179
+
SELECT BIT_XOR(b3) AS n1 FROM bitwise_test where 1 = 0
180
+
-- !query 21 schema
181
+
struct<n1:int>
182
+
-- !query 21 output
183
+
NULL
184
+
185
+
186
+
-- !query 22
187
+
SELECT BIT_XOR(b4) AS n1 FROM bitwise_test where b4 is null
0 commit comments