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

fix: Fix bug with no SqlRegistryConfig class #3586

Merged
merged 3 commits into from
Apr 21, 2023
Merged

fix: Fix bug with no SqlRegistryConfig class #3586

merged 3 commits into from
Apr 21, 2023

Conversation

davidschuler-8451
Copy link
Contributor

What this PR does / why we need it:
Fixes bug with using Sql Registry as described in #3544

Which issue(s) this PR fixes:

Fixes #3544

@sudohainguyen
Copy link
Collaborator

sudohainguyen commented Apr 6, 2023

hey @davidschuler-8451 , to simplify codebase, I think SqlRegistryConfig should be placed in sql.py instead, and it should inherit RegistryConfig

I'm also working on this one, you can see my commit here but feel free to apply to yours

@davidschuler-8451
Copy link
Contributor Author

hey @davidschuler-8451 , to simplify codebase, I think SqlRegistryConfig should be placed in sql.py instead, and it should inherit RegistryConfig

I'm also working on this one, you can see my commit here but feel free to apply to yours

thank you for that feedback! I went ahead and made those changes. Doesn't matter to me if your branch or mine gets merged in, just want to get this fixed because it's blocking some progress for us. Thanks!

@sudohainguyen
Copy link
Collaborator

ah your commits are required DCO to be ready for review, https://github.com/feast-dev/feast/pull/3586/checks?check_run_id=12566589779

@davidschuler-8451
Copy link
Contributor Author

ah your commits are required DCO to be ready for review, https://github.com/feast-dev/feast/pull/3586/checks?check_run_id=12566589779

yep - think i just fixed it. sorry about that

@sudohainguyen
Copy link
Collaborator

💯

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, davidschuler-8451

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

@adchia adchia changed the title fix: SqlRegistryConfig class fix: Fix bug with no SqlRegistryConfig class Apr 6, 2023
@davidschuler-8451
Copy link
Contributor Author

Sorry about the linter issue - i have my local env setup now (took a lot of trial and error with an M1 mac) so I can run the linting steps locally.

Might be a couple of ways to solve this:

  1. we could let the SqlRegistry accept either a RegistryConfig or a SqlRegistryConfig like this. Doesn't feel like the cleanest option but it makes the linter happy
    registry_config: Union[Optional[SqlRegistryConfig], Optional[RegistryConfig]],
  2. convert the registry_config to an instance of SqlRegistryConfig here? https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/registry/registry.py#L175

There may be other ways to do this as well, so I am open to suggestions. thank you!

class SqlRegistry(BaseRegistry):
def __init__(
self,
registry_config: Optional[RegistryConfig],
registry_config: Optional[SqlRegistryConfig],
Copy link
Collaborator

@sudohainguyen sudohainguyen Apr 8, 2023

Choose a reason for hiding this comment

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

hey @davidschuler-8451 I have another idea, let's make this one Optional[Union[RegistryConfig, SqlRegistryConfig]]

this should work as a charm

@feast-ci-bot feast-ci-bot removed the lgtm label Apr 10, 2023
@davidschuler-8451
Copy link
Contributor Author

@sudohainguyen & @adchia - fixed the issue with the build pipeline and things are looking good. Please review whenever you get a chance. thank you!

@adchia
Copy link
Collaborator

adchia commented Apr 11, 2023

/lgtm

@davidschuler-8451
Copy link
Contributor Author

thanks for the review @adchia! This is my first time opening a PR here - anything else I need to do to get this merged and released? Happy to help however necessary!

@nathananneken-8451
Copy link

thanks for the review @adchia! This is my first time opening a PR here - anything else I need to do to get this merged and released? Happy to help however necessary!

Anyone have any insight on what next steps are for getting this PR merged? Really appreciate any guidance and assistance!

@sudohainguyen
Copy link
Collaborator

lint-python action getting stuck somehow, that's why this is not automatically merged by the bot

@davidschuler-8451
Copy link
Contributor Author

lint-python action getting stuck somehow, that's why this is not automatically merged by the bot

Yeah, the action step says it's waiting on approval from a maintainer even though we already have that. Not sure if any of the @adchia or any of the other maintainers could retrigger that build step? Thanks again for the help

@davidschuler-8451
Copy link
Contributor Author

hi @achals @felixwang9817 @kevjumba is anyone able to restart the linter action step so this can get merged in? This bug is affecting multiple teams and blocking some progress for us. See #3590, #3544. thank you!

@adchia adchia merged commit 6dc1368 into feast-dev:master Apr 21, 2023
felixwang9817 pushed a commit that referenced this pull request Apr 21, 2023
# [0.31.0](v0.30.0...v0.31.0) (2023-04-21)

### Bug Fixes

* Add Stream Feature Views to helper that collect Feature View names ([#3582](#3582)) ([7854f63](7854f63))
* Add StreamFeatureViewSpec to FeastObjectSpecProto convenience type ([#3550](#3550)) ([3cefd6c](3cefd6c))
* Batch Snowflake materialization queries to obey Snowpark 100 fea… ([#3406](#3406)) ([f9862b5](f9862b5))
* Bytewax materializer security context ([#3573](#3573)) ([6794338](6794338))
* **cI:** Install coreutils in mac github workers for smoke test ([#3563](#3563)) ([e7421c1](e7421c1))
* Fix bug with no SqlRegistryConfig class ([#3586](#3586)) ([6dc1368](6dc1368))
* Fix Snowflake template ([#3584](#3584)) ([6c09c39](6c09c39))
* Make snowflake to remote tables temporary ([#3588](#3588)) ([ad48146](ad48146))
* Remove snowflake source warehouse tech debt ([#3422](#3422)) ([7da0580](7da0580))
* Snowflake remote storage ([#3574](#3574)) ([f8d3890](f8d3890))
* Support param timeout when persisting ([#3593](#3593)) ([01a98f0](01a98f0))
* Use pyarrow in a way that works across versions ([#3562](#3562)) ([1289f3f](1289f3f))
* Wrap the bigquery table name with backtick. ([#3577](#3577)) ([09f0e7e](09f0e7e))

### Features

* Add AWS Redshift Serverless support ([#3595](#3595)) ([58ce148](58ce148))
* Add Hazelcast as an online store ([#3523](#3523)) ([b05d50b](b05d50b))
* Cache Bigtable client ([#3602](#3602)) ([b27472f](b27472f))
* Relax aws extras requirements ([#3585](#3585)) ([7e77382](7e77382))
* Show bigquery datasource table and query on UI ([#3600](#3600)) ([58d63f7](58d63f7))
* Update snowflake offline store job output formats -- added arrow ([#3589](#3589)) ([be3e349](be3e349))
zerafachris pushed a commit to zerafachris/feast that referenced this pull request Mar 5, 2024
* adding SqlRegistryConfig class

Signed-off-by: davidschuler-8451 <[email protected]>

* refactor: move SqlRegistryConfig class to sql.py

Signed-off-by: davidschuler-8451 <[email protected]>

* enabling SqlRegistry to accept RegistryConfig or SqlRegistryConfig

Signed-off-by: davidschuler-8451 <[email protected]>

---------

Signed-off-by: davidschuler-8451 <[email protected]>
zerafachris pushed a commit to zerafachris/feast that referenced this pull request Mar 5, 2024
# [0.31.0](feast-dev/feast@v0.30.0...v0.31.0) (2023-04-21)

### Bug Fixes

* Add Stream Feature Views to helper that collect Feature View names ([feast-dev#3582](feast-dev#3582)) ([7854f63](feast-dev@7854f63))
* Add StreamFeatureViewSpec to FeastObjectSpecProto convenience type ([feast-dev#3550](feast-dev#3550)) ([3cefd6c](feast-dev@3cefd6c))
* Batch Snowflake materialization queries to obey Snowpark 100 fea… ([feast-dev#3406](feast-dev#3406)) ([f9862b5](feast-dev@f9862b5))
* Bytewax materializer security context ([feast-dev#3573](feast-dev#3573)) ([6794338](feast-dev@6794338))
* **cI:** Install coreutils in mac github workers for smoke test ([feast-dev#3563](feast-dev#3563)) ([e7421c1](feast-dev@e7421c1))
* Fix bug with no SqlRegistryConfig class ([feast-dev#3586](feast-dev#3586)) ([6dc1368](feast-dev@6dc1368))
* Fix Snowflake template ([feast-dev#3584](feast-dev#3584)) ([6c09c39](feast-dev@6c09c39))
* Make snowflake to remote tables temporary ([feast-dev#3588](feast-dev#3588)) ([ad48146](feast-dev@ad48146))
* Remove snowflake source warehouse tech debt ([feast-dev#3422](feast-dev#3422)) ([7da0580](feast-dev@7da0580))
* Snowflake remote storage ([feast-dev#3574](feast-dev#3574)) ([f8d3890](feast-dev@f8d3890))
* Support param timeout when persisting ([feast-dev#3593](feast-dev#3593)) ([01a98f0](feast-dev@01a98f0))
* Use pyarrow in a way that works across versions ([feast-dev#3562](feast-dev#3562)) ([1289f3f](feast-dev@1289f3f))
* Wrap the bigquery table name with backtick. ([feast-dev#3577](feast-dev#3577)) ([09f0e7e](feast-dev@09f0e7e))

### Features

* Add AWS Redshift Serverless support ([feast-dev#3595](feast-dev#3595)) ([58ce148](feast-dev@58ce148))
* Add Hazelcast as an online store ([feast-dev#3523](feast-dev#3523)) ([b05d50b](feast-dev@b05d50b))
* Cache Bigtable client ([feast-dev#3602](feast-dev#3602)) ([b27472f](feast-dev@b27472f))
* Relax aws extras requirements ([feast-dev#3585](feast-dev#3585)) ([7e77382](feast-dev@7e77382))
* Show bigquery datasource table and query on UI ([feast-dev#3600](feast-dev#3600)) ([58d63f7](feast-dev@58d63f7))
* Update snowflake offline store job output formats -- added arrow ([feast-dev#3589](feast-dev#3589)) ([be3e349](feast-dev@be3e349))

Signed-off-by: zerafachris PERSONAL <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants