-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Fix date column in tpcds connector #12194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,6 +86,13 @@ public void testShowTables() | |
| assertQueryFails("SHOW TABLES FROM sf0", "line 1:1: Schema 'sf0' does not exist"); | ||
| } | ||
|
|
||
| @Test | ||
| public void testDateColumnValuesCorrectness() | ||
| { | ||
| // make sure date values are correct regardless of the system timezone selected (test are executed with the system timezone set to America/Bahia_Banderas) | ||
| assertQuery("SELECT d_date FROM date_dim WHERE d_date_id = 'AAAAAAAAOKJNECAA'", "SELECT DATE '1900-01-02'"); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. was this test failing without the fix? Worth a comment (and maybe rename) to explain what exactly are we testing here.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I does fail without the fix. The tests are run in Will add a comment. |
||
| } | ||
|
|
||
| private Session createSession(String schemaName) | ||
| { | ||
| return testSessionBuilder() | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc: @findepi