forked from duckdb/duckdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |