Skip to content

Commit

Permalink
test for wildcard and generated column
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Jan 2, 2025
1 parent f647610 commit 265f6f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions e2e_test/source_inline/kafka/avro/alter_table.slt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ FORMAT PLAIN ENCODE AVRO (
schema.registry = '${RISEDEV_SCHEMA_REGISTRY_URL}'
);

# Demonstrate purified definition
query T
SELECT SUBSTRING(definition, 1, POSITION(' WITH' IN definition) - 1) FROM rw_tables WHERE name = 't';
----
CREATE TABLE t (bar INT, foo CHARACTER VARYING, gen_col INT AS bar + 1)

sleep 4s

query ?
Expand All @@ -43,6 +49,12 @@ sr_register avro_alter_table_test-value AVRO <<< '{"type":"record","name":"Root"
statement ok
ALTER TABLE t REFRESH SCHEMA;

# Demonstrate purified definition
query T
SELECT SUBSTRING(definition, 1, POSITION(' WITH' IN definition) - 1) FROM rw_tables WHERE name = 't';
----
CREATE TABLE t (bar INT, foo CHARACTER VARYING, nested STRUCT<baz INT>, gen_col INT AS bar + 1)

query ?
select * from t
----
Expand Down

0 comments on commit 265f6f7

Please sign in to comment.