Skip to content
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 backticks to left_table_query_string #2250

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

dmille
Copy link
Contributor

@dmille dmille commented Jan 27, 2022

What this PR does / why we need it:
GCP Project IDs which include a hyphen followed immediately by a number are valid (such as project-001), however these need to be escaped with backticks when used in a BQ query as a table reference. This PR adds backticks around the table reference in the MULTIPLE_FEATURE_VIEW_POINT_IN_TIME_JOIN template so that BigQuery doesn't throw an error.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

@dmille dmille requested a review from a team as a code owner January 27, 2022 20:59
@dmille dmille requested review from tsotnet and removed request for a team January 27, 2022 20:59
@adchia
Copy link
Collaborator

adchia commented Jan 27, 2022

Thanks for the contribution! /ok-to-test

Just an FYI, you'll have to sign your commit to pass the DCO check

@codecov-commenter
Copy link

codecov-commenter commented Jan 27, 2022

Codecov Report

Merging #2250 (a7f16b6) into master (46c4722) will decrease coverage by 12.33%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #2250       +/-   ##
===========================================
- Coverage   85.42%   73.08%   -12.34%     
===========================================
  Files         108      106        -2     
  Lines        9027     8797      -230     
===========================================
- Hits         7711     6429     -1282     
- Misses       1316     2368     +1052     
Flag Coverage Δ
integrationtests 73.08% <ø> (-0.30%) ⬇️
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
sdk/python/feast/infra/offline_stores/bigquery.py 86.95% <ø> (ø)
sdk/python/tests/unit/diff/test_infra_diff.py 11.11% <0.00%> (-88.89%) ⬇️
sdk/python/tests/unit/diff/test_fco_diff.py 12.00% <0.00%> (-88.00%) ⬇️
...ion/test_cli_apply_duplicated_featureview_names.py 14.54% <0.00%> (-85.46%) ⬇️
sdk/python/tests/unit/test_usage.py 14.78% <0.00%> (-85.22%) ⬇️
...n/tests/integration/registration/test_cli_chdir.py 18.51% <0.00%> (-81.49%) ⬇️
.../python/tests/integration/scaffolding/test_init.py 18.91% <0.00%> (-81.09%) ⬇️
sdk/python/tests/unit/test_proto_json.py 20.37% <0.00%> (-79.63%) ⬇️
...ts/integration/scaffolding/test_repo_operations.py 24.07% <0.00%> (-75.93%) ⬇️
...n/tests/integration/online_store/test_e2e_local.py 24.48% <0.00%> (-75.52%) ⬇️
... and 62 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 46c4722...a7f16b6. Read the comment docs.

Signed-off-by: david <davidmiller252@gmail.com>
@dmille
Copy link
Contributor Author

dmille commented Jan 27, 2022

Thanks for the contribution! /ok-to-test

Just an FYI, you'll have to sign your commit to pass the DCO check

My apologies. I have fixed that.

Copy link
Collaborator

@adchia adchia left a comment

Choose a reason for hiding this comment

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

/lgtm

@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adchia, dmille

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@feast-ci-bot feast-ci-bot merged commit 9f2c6d6 into feast-dev:master Jan 27, 2022
feast-ci-bot pushed a commit that referenced this pull request Jan 31, 2022
* Add backticks to left_table_query_string (#2250)

Signed-off-by: david <davidmiller252@gmail.com>
Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* Delete entity key from Redis only when all attached feature views are gone (#2240)

* Delete entity from redis when the last attached feature view is deleted

Signed-off-by: pyalex <moskalenko.alexey@gmail.com>

* Delete entity key from Redis only when all attached feature views are gone

Signed-off-by: pyalex <moskalenko.alexey@gmail.com>

* make lint happy

Signed-off-by: pyalex <moskalenko.alexey@gmail.com>

* make lint happy

Signed-off-by: pyalex <moskalenko.alexey@gmail.com>

* one more try with mypy

Signed-off-by: pyalex <moskalenko.alexey@gmail.com>
Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* historical_field_mappings2 merge for one sign off commit (#2252)

Signed-off-by: Michelle Rascati <michelle.rascati@sailpoint.com>
Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* Correct inconsistent dependency (#2255)

Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* Add snowflake environment variables to allow testing on snowflake infra (#2258)

* add snowflake environment vars to test framework

Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* add snowflake environment vars to test framework

Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* Return `UNIX_TIMESTAMP` as Python `datetime` (#2244)

* Refactor `UNIX_TIMESTAMP` conversion

Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>

* Return `UNIX_TIMESTAMP` types as `datetime` to user

Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>

* Fix linting errors

Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>

* Rename variable to something more sensible

Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* Feast plan clean up (#2256)

* Run validation and inference on views and entities during plan

Signed-off-by: Felix Wang <wangfelix98@gmail.com>

* Do not log objects that are unchanged

Signed-off-by: Felix Wang <wangfelix98@gmail.com>

* Rename Fco to FeastObject

Signed-off-by: Felix Wang <wangfelix98@gmail.com>

* Remove useless method

Signed-off-by: Felix Wang <wangfelix98@gmail.com>

* Lint

Signed-off-by: Felix Wang <wangfelix98@gmail.com>

* Always initialize registry during feature store initialization

Signed-off-by: Felix Wang <wangfelix98@gmail.com>

* Fix usage test

Signed-off-by: Felix Wang <wangfelix98@gmail.com>

* Remove print statements

Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* Squash commits

Signed-off-by: Danny Chiao <danny@tecton.ai>
Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* Add error type and refactor query execution to have retries

Signed-off-by: Danny Chiao <danny@tecton.ai>
Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* Handle more snowflake errors

Signed-off-by: Danny Chiao <danny@tecton.ai>
Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* Fix lint errors

Signed-off-by: Danny Chiao <danny@tecton.ai>
Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* Fix lint errors

Signed-off-by: Danny Chiao <danny@tecton.ai>
Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* Fix lint errors

Signed-off-by: Danny Chiao <danny@tecton.ai>
Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* Fix wrong import

Signed-off-by: Danny Chiao <danny@tecton.ai>
Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* modify registry.db s3 object initialization to work in S3 subdirectory with Java Feast Server (#2259)

Signed-off-by: NalinGHub <nalinm01@gmail.com>
Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* clean up docs

Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* lint-python

Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* fixed historical test

Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

* fixed historical test

Signed-off-by: sfc-gh-madkins <miles.adkins@snowflake.com>

Co-authored-by: David Miller <david@patagona.ca>
Co-authored-by: Oleksii Moskalenko <moskalenko.alexey@gmail.com>
Co-authored-by: Michelle Rascati <44408275+michelle-rascati-sp@users.noreply.github.com>
Co-authored-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
Co-authored-by: Felix Wang <wangfelix98@gmail.com>
Co-authored-by: Danny Chiao <danny@tecton.ai>
Co-authored-by: Nalin Mehra <37969183+NalinGHub@users.noreply.github.com>
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.

5 participants