-
Notifications
You must be signed in to change notification settings - Fork 209
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
fix: edge case in Snowflake information_schema.last_altered value #360
fix: edge case in Snowflake information_schema.last_altered value #360
Conversation
cc @Alagappan FYI this was an edge case with sending Snowflake data |
will let @Alagappan comment, but the title is about snowflake, but the file seems to be related to myssql? |
Ah 😅 I committed the wrong file, will modify shortly! |
the DOC check fails, could you do |
Hello @instazackwu I thought about this some more and I think the best way to handle null is to prune those rows out in the SQL itself with a where condition as opposed to converting nulls to 0. We should not display @feng-tao would like to get your thoughts on this as well. |
Signed-off-by: Zack Wu <[email protected]>
Signed-off-by: Zack Wu <[email protected]>
e293cf3
to
3eedcc0
Compare
👍🏻 yeah I agree that's actually a better way to make the data more clean, seems like the frontend doesn't display last_updated_time if the value is 0 anyways. I'll wait for Feng to weigh in, but the approach I was thinking was to set the default where clause to: |
yeah, having a where clause seems to be better. |
Signed-off-by: Zack Wu <[email protected]>
f1356b8
to
9354d63
Compare
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.
Looks good to me!
Summary of Changes
Add Snowflake documentation link, account for edge case for null last_altered values for tables in
information_schema
For context, this was the error that was sent without the
NVL
(The null was being translated toNone
):Tests
Data examples provided above.
Documentation
https://docs.snowflake.com/en/sql-reference/info-schema/views.html#columns
CheckList
Make sure you have checked all steps below to ensure a timely review.
make test