CREATE SCHEMA

USE

CREATE TABLE

"CREATE TABLE %.gt_db2.tb01 (
   f1 varchar,
   f3 varbinary,
   f4 decimal(10, 3),
   f5 real,
   f6 double,
   f7 boolean,
   f10 integer,
   f11 integer,
   f12 bigint,
   f13 date,
   f14 time(6),
   f15 timestamp(6),
   f16 timestamp(6) with time zone
)
COMMENT ''
WITH (
   format = 'PARQUET',
   format_version = '2',
   location = 'hdfs://%/user/iceberg/warehouse/TrinoQueryIT/gt_db2%/tb01'
)"


INSERT: 1 row

INSERT: 1 row

"Sample text 1","65","123.456","7.89","12.34","true","1000","1000","100000","2024-01-01","08:00:00.000000","2024-01-01 08:00:00.000000","2024-01-01 08:00:00.000000 UTC"
"","","","","","","","","","","","",""

CREATE TABLE

"CREATE TABLE %.gt_db2.tb02 (
   f1 varchar NOT NULL,
   f3 varbinary NOT NULL,
   f4 decimal(10, 3) NOT NULL,
   f5 real NOT NULL,
   f6 double NOT NULL,
   f7 boolean NOT NULL,
   f10 integer NOT NULL,
   f11 integer NOT NULL,
   f12 bigint NOT NULL,
   f13 date NOT NULL,
   f14 time(6) NOT NULL,
   f15 timestamp(6) NOT NULL,
   f16 timestamp(6) with time zone NOT NULL
)
COMMENT ''
WITH (
   format = 'PARQUET',
   format_version = '2',
   location = 'hdfs://%/user/iceberg/warehouse/TrinoQueryIT/gt_db2%/tb02'
)"

INSERT: 1 row

<QUERY_FAILED> NULL value not allowed for NOT NULL column: f1

<QUERY_FAILED> NULL value not allowed for NOT NULL column: f7

<QUERY_FAILED> NULL value not allowed for NOT NULL column: f12

<QUERY_FAILED> NULL value not allowed for NOT NULL column: f14

DROP TABLE

DROP TABLE

DROP SCHEMA
