Missing alias in PostgreSQLOfflineStore.pull_all_from_table_or_query()
#2954
Labels
PostgreSQLOfflineStore.pull_all_from_table_or_query()
#2954
Expected Behavior
Call
pull_all_from_table_or_query()
method and retrieve wanted data from offline store.Current Behavior
SQL error
psycopg2.errors.SyntaxError: subquery in FROM must have an alias
Steps to reproduce
Call
pull_all_from_table_or_query()
onPostgreSQLOfflineStore
, wherePostgreSQLSource
is initialized withquery="SELECT * FROM table_name"
Specifications
Possible Solution
Adding alias in query located in
PostgreSQLOfflineStore.pull_all_from_table_or_query()
, for example addingAS dummy_alias
. This was tested on my use-case and it works as expected, and if it looks ok, I could open a PR with this change.The text was updated successfully, but these errors were encountered: