-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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] Enforcing main dttm column #5584
[fix] Enforcing main dttm column #5584
Conversation
f07b2ba
to
a322ba2
Compare
Codecov Report
@@ Coverage Diff @@
## master #5584 +/- ##
==========================================
- Coverage 63.62% 63.62% -0.01%
==========================================
Files 359 359
Lines 22820 22823 +3
Branches 2533 2534 +1
==========================================
Hits 14520 14520
- Misses 8285 8288 +3
Partials 15 15
Continue to review full report at Codecov.
|
This PR would remedy #3629, I suppose. Thanks a lot! |
@@ -846,6 +841,12 @@ export const controls = { | |||
const newState = {}; | |||
if (state.datasource) { | |||
newState.options = state.datasource.columns.filter(c => c.is_dttm); | |||
newState.default = null; |
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.
Not related to your PR: props
would be a better variable name than newState
in this method.
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.
@mistercrunch I've renamed newState
to props
.
LGTM |
a322ba2
to
3cf15fa
Compare
3cf15fa
to
4160819
Compare
(cherry picked from commit 2685ab4)
This PR ensures that if defined the "Main Datetime Column" is used as the default value. Previously this value was being ignored and thus for datasource with multiple temporal columns a sub-optimal choice may occur, i.e., using a non-partitioned column.
to: @GabeLoins @graceguo-supercat @michellethomas @mistercrunch @williaster
closes #3629