-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add final_output_feature_names in Query context to avoid SELECT * EXCEPT #1911
Add final_output_feature_names in Query context to avoid SELECT * EXCEPT #1911
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1911 +/- ##
==========================================
+ Coverage 81.89% 82.02% +0.12%
==========================================
Files 97 97
Lines 7739 7760 +21
==========================================
+ Hits 6338 6365 +27
+ Misses 1401 1395 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
d5005a5
to
8aba10b
Compare
8aba10b
to
4a1e10e
Compare
Strange that the tests didn't fail. Your proposed change here looks good to me. |
Also the fact that there is a |
4a1e10e
to
a822d27
Compare
a822d27
to
fcaa721
Compare
4c2cef3
to
b84a70c
Compare
nope it was just an FYI |
sdk/python/tests/integration/offline_store/test_universal_historical_retrieval.py
Outdated
Show resolved
Hide resolved
d1af021
to
b5dd4d7
Compare
seems like you have some bug in the redshift test. Roughly, you can see the dataset here It creates something like
It fails after checking driver_id=3's value after materializing data up to 2 hr ago. Seems likely that your timestamp change for the redshift query made it accidentally materialize that last record (driver_id=3, value=5)? |
sdk/python/tests/integration/offline_store/test_universal_historical_retrieval.py
Show resolved
Hide resolved
42507b6
to
0c17e5b
Compare
…EPT at the end Signed-off-by: Matt Delacour <[email protected]>
Signed-off-by: Matt Delacour <[email protected]>
Signed-off-by: Matt Delacour <[email protected]>
Signed-off-by: Matt Delacour <[email protected]>
Signed-off-by: Matt Delacour <[email protected]>
Signed-off-by: Matt Delacour <[email protected]>
Signed-off-by: Matt Delacour <[email protected]>
Signed-off-by: Matt Delacour <[email protected]>
0c17e5b
to
6baf214
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adchia, MattDelac The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Matt Delacour [email protected]
What this PR does / why we need it:
Contrary to BigQuery, other offline stores like Trino & Redshit don't support
SELECT * EXCEPT(...)
Therefore, we should inject the list of the columns we want at the end of an historical retrieval.
It also makes it easier to understand which columns are included. It's often hard to understand those SELECT * EXCEPT as nothing is explicit
I also fix the Redshit template that is not using the ROW_NUMBER logic as in BigQuery. This was a bug fixed 2 months ago.
Unsure why the unit tests did not fail before even though I added tests at the time 🤷
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: