@@ -83,7 +83,7 @@ def distance(
83
83
"""
84
84
assert len (x .columns ) == 1 and len (y .columns ) == 1
85
85
86
- input_data = x ._cached ().join (y ._cached (), how = "outer" )
86
+ input_data = x .cache ().join (y .cache (), how = "outer" )
87
87
x_column_id , y_column_id = x ._block .value_columns [0 ], y ._block .value_columns [0 ]
88
88
89
89
return self ._apply_sql (
@@ -310,11 +310,9 @@ def create_model(
310
310
# Cache dataframes to make sure base table is not a snapshot
311
311
# cached dataframe creates a full copy, never uses snapshot
312
312
if y_train is None :
313
- input_data = X_train ._cached ( force = True )
313
+ input_data = X_train .cache ( )
314
314
else :
315
- input_data = X_train ._cached (force = True ).join (
316
- y_train ._cached (force = True ), how = "outer"
317
- )
315
+ input_data = X_train .cache ().join (y_train .cache (), how = "outer" )
318
316
options .update ({"INPUT_LABEL_COLS" : y_train .columns .tolist ()})
319
317
320
318
session = X_train ._session
@@ -354,9 +352,7 @@ def create_llm_remote_model(
354
352
options = dict (options )
355
353
# Cache dataframes to make sure base table is not a snapshot
356
354
# cached dataframe creates a full copy, never uses snapshot
357
- input_data = X_train ._cached (force = True ).join (
358
- y_train ._cached (force = True ), how = "outer"
359
- )
355
+ input_data = X_train .cache ().join (y_train .cache (), how = "outer" )
360
356
options .update ({"INPUT_LABEL_COLS" : y_train .columns .tolist ()})
361
357
362
358
session = X_train ._session
@@ -389,9 +385,7 @@ def create_time_series_model(
389
385
options = dict (options )
390
386
# Cache dataframes to make sure base table is not a snapshot
391
387
# cached dataframe creates a full copy, never uses snapshot
392
- input_data = X_train ._cached (force = True ).join (
393
- y_train ._cached (force = True ), how = "outer"
394
- )
388
+ input_data = X_train .cache ().join (y_train .cache (), how = "outer" )
395
389
options .update ({"TIME_SERIES_TIMESTAMP_COL" : X_train .columns .tolist ()[0 ]})
396
390
options .update ({"TIME_SERIES_DATA_COL" : y_train .columns .tolist ()[0 ]})
397
391
0 commit comments