Skip to content

Any virtual column on "__time" should be a pre-join virtual column#10451

Merged
jon-wei merged 2 commits intoapache:masterfrom
abhishekagarwal87:base_time_column
Oct 12, 2020
Merged

Any virtual column on "__time" should be a pre-join virtual column#10451
jon-wei merged 2 commits intoapache:masterfrom
abhishekagarwal87:base_time_column

Conversation

@abhishekagarwal87
Copy link
Contributor

@abhishekagarwal87 abhishekagarwal87 commented Sep 29, 2020

If there is a virtual column with __time and base table columns as required columns, the virtual column can still be created past join. This PR avoids that from happening.


This PR has:

  • been self-reviewed.

Copy link
Contributor

@jon-wei jon-wei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a test? JoinFilterAnalyzerTest.test_filterPushDown_factToRegionToCountryLeftFilterOnChannelVirtualColumn is an example that uses virtual columns

@jon-wei jon-wei merged commit 567e381 into apache:master Oct 12, 2020
@abhishekagarwal87 abhishekagarwal87 deleted the base_time_column branch October 14, 2020 11:22
@jihoonson jihoonson added this to the 0.21.0 milestone Jan 4, 2021
JulianJaffePinterest pushed a commit to JulianJaffePinterest/druid that referenced this pull request Jan 22, 2021
…pache#10451)

* Virtual column on __time should be in pre-join

* Add unit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants