-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: improve tz test coverage (#3549)
* test: improve tz test coverage
- Loading branch information
1 parent
2be8385
commit 99136af
Showing
3 changed files
with
37 additions
and
4 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
20 changes: 20 additions & 0 deletions
20
ksql-functional-tests/src/test/resources/query-validation-tests/timestamp-to-string.json
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,20 @@ | ||
{ | ||
"comments": [ | ||
"Tests covering the use of the TIMESTAMPTOSTRING function." | ||
], | ||
"tests": [ | ||
{ | ||
"name": "with valid zone", | ||
"statements": [ | ||
"CREATE STREAM INPUT (IGNORED INT) WITH (kafka_topic='input', value_format='JSON');", | ||
"CREATE STREAM OUTPUT AS SELECT TIMESTAMPTOSTRING(ROWTIME, 'yyyy-MM-dd HH:mm:ss zzz','America/Los_Angeles') FROM input;" | ||
], | ||
"inputs": [ | ||
{"topic": "input", "value": {}, "timestamp": 1526075913000} | ||
], | ||
"outputs": [ | ||
{"topic": "OUTPUT", "value": {"KSQL_COL_0":"2018-05-11 14:58:33 PDT"}, "timestamp": 1526075913000} | ||
] | ||
} | ||
] | ||
} |
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