You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feast cli commands like feast plan work when using a mssql offline store
Current Behavior
Currently, repos with mssql offline store are broken when appying feast cli commands. The following occurs:
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/feast/repo_operations.py", line 218, in plan
data_source.validate(store.config)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/feast/infra/offline_stores/contrib/mssql_offline_store/mssqlserver_source.py", line 215, in validate
self.get_table_column_names_and_types(config)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/feast/infra/offline_stores/contrib/mssql_offline_store/mssqlserver_source.py", line 243, in get_table_column_names_and_types
table_schema = pandas.read_sql(columns_query, conn)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/sql.py", line 706, in read_sql
return pandas_sql.read_query(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/sql.py", line 2736, in read_query
cursor = self.execute(sql, params)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/sql.py", line 2670, in execute
cur = self.con.cursor()
AttributeError: 'Engine' object has no attribute 'cursor'
@peter-resnickmssql is still not part of ci, so unfortunately these sort of bugs may occur. I don't think pinning sqlalchemy is an option though, we recently merged an upgrade to 2.x #4065
Activity
peter-resnick commentedon Apr 2, 2024
I can make a PR for this when I get a chance
tokoko commentedon Apr 4, 2024
@peter-resnick
mssqlis still not part of ci, so unfortunately these sort of bugs may occur. I don't think pinningsqlalchemyis an option though, we recently merged an upgrade to 2.x #4065tokoko commentedon Jul 19, 2024
Closing this as
sqlalchemyis no longer used in mssql backend.