-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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(explore-sqllab): make that Timestamp column keep the Is temporal … #19010
Conversation
…flagged when overwriting
Codecov Report
@@ Coverage Diff @@
## master #19010 +/- ##
==========================================
+ Coverage 66.58% 66.78% +0.20%
==========================================
Files 1641 1643 +2
Lines 63548 65287 +1739
Branches 6424 7064 +640
==========================================
+ Hits 42312 43603 +1291
- Misses 19555 19936 +381
- Partials 1681 1748 +67
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
It might be use to add repro steps to the PR description for historical purposes, and for anyone who wants to review/test. In this case:
Also, is it possible to add a test for this? |
|
@evans |
/testenv up |
@rusackas Ephemeral environment spinning up at http://52.13.4.148:8080. Credentials are |
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.
In this PR, there seems to be a regression, with the following steps:
- I pick a dataset, like
cleaned_sales_data
- I can open that in explore, and verify that
order_date
is available in the Time section of the controls as the Time Column - I go to SQL Editor, and do
SELECT * from cleaned_sales_data
- I click the Explore button, and save the dataset along the way
- In the Time section, the
order_date
field is no longer available in the Time Column input
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.
I meant for that last comment to be a change request, not an approval 🤦
@rusackas . |
Interesting. I'm able to reproduce on the ephemeral environment, but not when I check out the PR to my local env. I seem to recall some changes being made to the ephemeral env configuration since this was opened, so I'll trust the local testing a little more and approve this :D |
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.
LGTM
Ephemeral environment shutdown and build artifacts deleted. |
results.selected_columns.map(d => ({ column_name: d.name })), | ||
results.selected_columns.map(d => ({ | ||
column_name: d.name, | ||
is_dttm: d.is_date, |
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.
seems like is_dttm
and is_date
is inconsistency... Let me look at more.
…flagged when overwriting (apache#19010)
SUMMARY
Overwriting an existing virtual dataset removes the Is temporal flag from columns
How to reproduce the bug
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE:
AFTER:
ADDITIONAL INFORMATION