Skip to content

Commit

Permalink
add test for internal 3004
Browse files Browse the repository at this point in the history
  • Loading branch information
lnkuiper committed Sep 11, 2024
1 parent 98fb4b1 commit 35db0f8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions test/sql/cte/materialized/internal_3004.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# name: test/sql/cte/materialized/internal_3004.test
# description: INTERNAL Error: Attempted to access index 1 within vector of size 1 -> harlequin internal code, CTE related
# group: [materialized]

statement ok
with
system_types as (
select distinct
type_name as label,
'type' as type_label,
1000 as priority,
null as context
from duckdb_types()
where database_name = 'system'
),
custom_types as (
select distinct
type_name as label,
'type' as type_label,
1000 as priority,
schema_name as context
from duckdb_types()
where
database_name not in ('system', 'temp')
and type_name not in (select label from system_types)
)
select *
from system_types
union all
select *
from custom_types

0 comments on commit 35db0f8

Please sign in to comment.