Skip to content

Commit 965b414

Browse files
committed
Remove timezone form timestamp
1 parent 697bc5e commit 965b414

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

src/test/docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ networks:
2222

2323
services:
2424
postgres:
25-
image: postgres:16
25+
image: postgres:17
2626
environment:
2727
POSTGRES_USER: postgres
2828
POSTGRES_PASSWORD: postgres

src/test/resources/sqrl/compiled-plan.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dataType" : "DOUBLE NOT NULL"
1717
}, {
1818
"name" : "time",
19-
"dataType" : "TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL"
19+
"dataType" : "TIMESTAMP NOT NULL"
2020
}, {
2121
"name" : "amount",
2222
"dataType" : "DOUBLE NOT NULL"
@@ -43,7 +43,7 @@
4343
}
4444
}
4545
},
46-
"outputType" : "ROW<`transactionId` BIGINT NOT NULL, `cardNo` DOUBLE NOT NULL, `time` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL, `amount` DOUBLE NOT NULL, `merchantId` BIGINT NOT NULL>",
46+
"outputType" : "ROW<`transactionId` BIGINT NOT NULL, `cardNo` DOUBLE NOT NULL, `time` TIMESTAMP NOT NULL, `amount` DOUBLE NOT NULL, `merchantId` BIGINT NOT NULL>",
4747
"description" : "TableSourceScan(table=[[default_catalog, default_database, _transaction_1]], fields=[transactionId, cardNo, time, amount, merchantId])",
4848
"inputProperties" : [ ]
4949
}, {
@@ -60,7 +60,7 @@
6060
}, {
6161
"kind" : "INPUT_REF",
6262
"inputIndex" : 2,
63-
"type" : "TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL"
63+
"type" : "TIMESTAMP NOT NULL"
6464
} ],
6565
"condition" : null,
6666
"inputProperties" : [ {
@@ -70,7 +70,7 @@
7070
"damBehavior" : "PIPELINED",
7171
"priority" : 0
7272
} ],
73-
"outputType" : "ROW<`merchantId` BIGINT NOT NULL, `amount` DOUBLE NOT NULL, `time` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL>",
73+
"outputType" : "ROW<`merchantId` BIGINT NOT NULL, `amount` DOUBLE NOT NULL, `time` TIMESTAMP NOT NULL>",
7474
"description" : "Calc(select=[merchantId, amount, time])"
7575
}, {
7676
"id" : 3,
@@ -83,7 +83,7 @@
8383
"damBehavior" : "PIPELINED",
8484
"priority" : 0
8585
} ],
86-
"outputType" : "ROW<`merchantId` BIGINT NOT NULL, `amount` DOUBLE NOT NULL, `time` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL>",
86+
"outputType" : "ROW<`merchantId` BIGINT NOT NULL, `amount` DOUBLE NOT NULL, `time` TIMESTAMP NOT NULL>",
8787
"description" : "Exchange(distribution=[hash[merchantId]])"
8888
}, {
8989
"id" : 4,
@@ -110,7 +110,7 @@
110110
"distinct" : false,
111111
"approximate" : false,
112112
"ignoreNulls" : false,
113-
"type" : "TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL"
113+
"type" : "TIMESTAMP NOT NULL"
114114
} ],
115115
"aggCallNeedRetractions" : [ false, false ],
116116
"generateUpdateBefore" : false,
@@ -127,7 +127,7 @@
127127
"damBehavior" : "PIPELINED",
128128
"priority" : 0
129129
} ],
130-
"outputType" : "ROW<`merchantId` BIGINT NOT NULL, `max_amount` DOUBLE NOT NULL, `__timestamp` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL>",
130+
"outputType" : "ROW<`merchantId` BIGINT NOT NULL, `max_amount` DOUBLE NOT NULL, `__timestamp` TIMESTAMP NOT NULL>",
131131
"description" : "GroupAggregate(groupBy=[merchantId], select=[merchantId, MAX(amount) AS max_amount, MAX(time) AS __timestamp])"
132132
}, {
133133
"id" : 5,
@@ -147,7 +147,7 @@
147147
}, {
148148
"kind" : "INPUT_REF",
149149
"inputIndex" : 2,
150-
"type" : "TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL"
150+
"type" : "TIMESTAMP NOT NULL"
151151
} ],
152152
"condition" : null,
153153
"inputProperties" : [ {
@@ -157,7 +157,7 @@
157157
"damBehavior" : "PIPELINED",
158158
"priority" : 0
159159
} ],
160-
"outputType" : "ROW<`merchantId` BIGINT NOT NULL, `double_ta` INT NOT NULL, `max_amount` DOUBLE NOT NULL, `__timestamp` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL>",
160+
"outputType" : "ROW<`merchantId` BIGINT NOT NULL, `double_ta` INT NOT NULL, `max_amount` DOUBLE NOT NULL, `__timestamp` TIMESTAMP NOT NULL>",
161161
"description" : "Calc(select=[merchantId, 2 AS double_ta, max_amount, __timestamp])"
162162
}, {
163163
"id" : 6,
@@ -185,7 +185,7 @@
185185
"dataType" : "DOUBLE NOT NULL"
186186
}, {
187187
"name" : "__timestamp",
188-
"dataType" : "TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL"
188+
"dataType" : "TIMESTAMP NOT NULL"
189189
} ],
190190
"watermarkSpecs" : [ ],
191191
"primaryKey" : {
@@ -214,7 +214,7 @@
214214
"damBehavior" : "PIPELINED",
215215
"priority" : 0
216216
} ],
217-
"outputType" : "ROW<`merchantId` BIGINT NOT NULL, `double_ta` INT NOT NULL, `max_amount` DOUBLE NOT NULL, `__timestamp` TIMESTAMP(3) WITH LOCAL TIME ZONE NOT NULL>",
217+
"outputType" : "ROW<`merchantId` BIGINT NOT NULL, `double_ta` INT NOT NULL, `max_amount` DOUBLE NOT NULL, `__timestamp` TIMESTAMP NOT NULL>",
218218
"description" : "Sink(table=[default_catalog.default_database.transactionbymerchant_1], fields=[merchantId, double_ta, max_amount, __timestamp])"
219219
} ],
220220
"edges" : [ {
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
CREATE TABLE IF NOT EXISTS transactionbymerchant_1 ("merchantId" BIGINT NOT NULL,"double_ta" DOUBLE PRECISION NOT NULL,"max_amount" DOUBLE PRECISION NOT NULL,"__timestamp" TIMESTAMP WITH TIME ZONE NOT NULL , PRIMARY KEY ("merchantId"));
1+
CREATE TABLE IF NOT EXISTS transactionbymerchant_1 ("merchantid" BIGINT NOT NULL,"double_ta" DOUBLE PRECISION NOT NULL,"max_amount" DOUBLE PRECISION NOT NULL,"__timestamp" TIMESTAMP
2+
NOT NULL , PRIMARY KEY ("merchantid"));
23

34

0 commit comments

Comments
 (0)