We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4c8980 commit 5ddb83bCopy full SHA for 5ddb83b
sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark_source.py
@@ -159,10 +159,7 @@ def get_table_column_names_and_types(
159
store_config=config.offline_store
160
)
161
df = spark_session.sql(f"SELECT * FROM {self.get_table_query_string()}")
162
- return (
163
- (fields["name"], fields["type"])
164
- for fields in df.schema.jsonValue()["fields"]
165
- )
+ return ((field.name, field.dataType.simpleString()) for field in df.schema)
166
167
def get_table_query_string(self) -> str:
168
"""Returns a string that can directly be used to reference this table in SQL"""
0 commit comments