3434import tzlocal
3535from hopsworks_common .core .constants import HAS_NUMPY , HAS_PANDAS
3636from hsfs .constructor import query
37- from hsfs .core import feature_group_api
3837
3938# in case importing in %%local
4039from hsfs .core .vector_db_client import VectorDbClient
@@ -223,8 +222,6 @@ def register_hudi_temporary_table(
223222 read_options ,
224223 )
225224
226- self .reconcile_schema (hudi_fg_alias , read_options , hudi_engine_instance )
227-
228225 def register_delta_temporary_table (
229226 self , delta_fg_alias , feature_store_id , feature_store_name , read_options
230227 ):
@@ -241,28 +238,6 @@ def register_delta_temporary_table(
241238 read_options ,
242239 )
243240
244- self .reconcile_schema (delta_fg_alias , read_options , delta_engine_instance )
245-
246- def reconcile_schema (self , fg_alias , read_options , engine_instance ):
247- if sorted (self ._spark_session .table (fg_alias .alias ).columns ) != sorted (
248- [feature .name for feature in fg_alias .feature_group ._features ]
249- + hudi_engine .HudiEngine .HUDI_SPEC_FEATURE_NAMES
250- if fg_alias .feature_group .time_travel_format == "HUDI"
251- else []
252- ):
253- full_fg = feature_group_api .FeatureGroupApi ().get (
254- feature_store_id = fg_alias .feature_group ._feature_store_id ,
255- name = fg_alias .feature_group .name ,
256- version = fg_alias .feature_group .version ,
257- )
258-
259- self .update_table_schema (full_fg )
260-
261- engine_instance .register_temporary_table (
262- fg_alias ,
263- read_options ,
264- )
265-
266241 def _return_dataframe_type (self , dataframe , dataframe_type ):
267242 if dataframe_type .lower () in ["default" , "spark" ]:
268243 return dataframe
0 commit comments