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
{{ message }}
Repository navigation
Snowflake offline store, feature inference doesn't work for VARCHAR types. #2412
When using Snowflake offline store, feature inference should consider VARCHAR columns in snowflake as str.
Current Behavior
When using Snowflake offline store, feature inference considers VARCHAR type columns in snowflake as object in pandas dataframe, and therefore cause UNKNOWN error.
Hi Tony! Can you add a specific example of this not working? Have you encountered this because the way feature inference works is we capture the columns of a snowflake table and convert it to pandas dataframe as a single row.
The snowflake documentation states here very clearly that a VARCHAR datatype converts to str which is handled by the type map as a ValueType.STRING. https://docs.snowflake.com/en/user-guide/python-connector-pandas.html
Also string datatypes in Snowflake have been working for Feast in the past.
I think it is general any varchar or str in snowflake
create table test_table (
name varchar (100), -- variable string column
preferences string, -- column used to store JSON type of data
created_at timestamp
)
insert into test_table
values ( 'test', 'str_test', '2020-04-04 16:57:53.653');
Activity
kevjumba commentedon Mar 23, 2022
Hi Tony! Can you add a specific example of this not working? Have you encountered this because the way feature inference works is we capture the columns of a snowflake table and convert it to pandas dataframe as a single row.
The snowflake documentation states here very clearly that a VARCHAR datatype converts to
strwhich is handled by the type map as aValueType.STRING.https://docs.snowflake.com/en/user-guide/python-connector-pandas.html
Also string datatypes in Snowflake have been working for Feast in the past.
tonyqiu2020 commentedon Mar 23, 2022
I think it is general any varchar or str in snowflake
And if we run code like this part
https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/offline_stores/snowflake_source.py#L196-L207
I got [('NAME', 'object'), ('PREFERENCES', 'object'), ('CREATED_AT', 'datetime64[ns]')]
felixwang9817 commentedon Apr 16, 2022
@tonyqiu2020 pretty sure #2558 resolves this! Feel free to reopen if I'm mistaken.