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,19 @@
# name: test/sql/pivot/unpivot_internal_names.test
# description: Test unpivoting on a table with names used internally by the unpivot operator
# group: [pivot]
statement ok
PRAGMA enable_verification
statement ok
CREATE TABLE unpivot_names(unpivot_names VARCHAR, unpivot_list VARCHAR, unpivot_list_2 VARCHAR, col1 INT, col2 INT, col3 INT);
statement ok
INSERT INTO unpivot_names VALUES ('unpivot_names', 'unpivot_list', 'unpivot_list_2', 1, 2, 3);
query IIIII
UNPIVOT unpivot_names ON COLUMNS('col*')
----
unpivot_names unpivot_list unpivot_list_2 col1 1
unpivot_names unpivot_list unpivot_list_2 col2 2
unpivot_names unpivot_list unpivot_list_2 col3 3