Skip to content

Commit b133a33

Browse files
author
zstan
committed
add long schemas test
1 parent 2ebdaf5 commit b133a33

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

modules/sql-engine/src/integrationTest/sql/group1/identifiers/test_long_identifiers.test

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# description: SQL feature F391 (Long identifiers)
33
# group: [identifiers]
44

5-
# TODO: IGNITE-19703 Add cases for long identifiers for schema names.
6-
75
statement ok
86
PRAGMA enable_verification
97

@@ -13,6 +11,21 @@ tableName_veryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
1311
statement error: Non-query expression encountered in illegal context.
1412
SELECT 1; tableName_veryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongIdentifierOf129Characters
1513

14+
# Create schema with long identifiers
15+
statement ok
16+
CREATE SCHEMA identifier_veryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongIdentifierOf128Characters;
17+
18+
statement error: Length of identifier
19+
CREATE SCHEMA identifier_veryLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongIdentifierOf129Characters;
20+
21+
# Create schema and table with long identifiers
22+
statement ok
23+
CREATE TABLE identifier_veryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongIdentifierOf128Characters.tableName_veryLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongIdentifierOf128Characters (keyColumnName_veryLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongIdentifierOf128Characters INTEGER, valueColumnName_veryLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongIdentifierOf128Characters INTEGER, PRIMARY KEY (keyColumnName_veryLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongIdentifierOf128Characters));
24+
25+
statement ok
26+
DROP SCHEMA identifier_veryLooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongIdentifierOf128Characters CASCADE;
27+
28+
1629
# Create table with short identifiers for test simplicity purpose
1730
statement ok
1831
CREATE TABLE t (id INTEGER, val INTEGER, PRIMARY KEY (id))

0 commit comments

Comments
 (0)