should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
# name: test/sql/pivot/pivot_empty.test
# description: Test SQL pivot on an empty table
# group: [pivot]
statement ok
PRAGMA enable_verification
statement ok
CREATE TABLE Cities(Country VARCHAR, Name VARCHAR, Year INT, Population INT);
query II
PIVOT Cities ON Country USING SUM(Population);
----
query I
PIVOT Cities ON Country, Name USING SUM(Population);
----
query III
PIVOT Cities ON Country IN ('xx') USING SUM(Population);
----
query II
PIVOT Cities ON (Country, Name) IN ('xx') USING SUM(Population);
----
query IIII
PIVOT Cities ON Country IN ('xx', 'yy') USING SUM(Population);
----