-
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
bug:postgres source invalid pull_latest_from_table_or_query
query output
#3804
Comments
hello! I ran exactly into the same issue and fixed it by applying the fix suggested by @david-dest01. |
thanks for testing @danielsalvador |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Am I mistaken or was the PR to fix this never merged? I'm experiencing the same issue at the moment. |
@job-almekinders the ticket was closed by maintainers - it was never resolved. #3807 |
I'll re-open one tomorrow one tomorrow, after rebasing on master! |
I re-opened a similar PR #4026 |
@job-almekinders @david-dest01 thanks for re-opening and tackling this. We've recently (over the last several months) transitioned to new maintainers/contributors and it's been a bit tricky dealing with some of the older issues & PR's that we inherited and figuring out what's still relevant & active. We're definitely open to community contributions/issues! Much appreciated :) |
@jeremyary the previous PR was most likely eventually closed because of a failed DCO check. just saying... 😄 |
@jeremyary - glad to see feast getting some love :) |
I would submit a PR but I'm on an M1 and had some issues getting the env running. Submitting a proposed solution for the sake of available time.
Expected Behavior
When using
PostgreSQLSource
, you should be able to use a table successfully. When runningfeast masterialize [START_DATE] [END_DATE]
, as a user I would expect the table to be selected on successfully with no errors.Current Behavior
pull_latest_from_table_or_query attempts to pull the latest data using the outputted string from get_table_query_string. However on line 97 of
postgres.py
the query includes open and close parens assuming an inner query. These params should be removed from the query and handled byget_table_query_string
(which it is).Steps to reproduce
Create a source as part of a feature view. Reference an existing table.
execute
feast materialize [START_DATE] [END_DATE]
expected output.
Specifications
Possible Solution
Update this query from:
to:
The text was updated successfully, but these errors were encountered: