File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -643,7 +643,12 @@ def _execute_plan_gbq(
643643 plan = nodes .PromoteOffsetsNode (plan , offsets_id )
644644 cluster_cols = [offsets_id .sql ]
645645 else :
646- cluster_cols = cache_spec .cluster_cols [:_MAX_CLUSTER_COLUMNS ]
646+ cluster_cols = [
647+ col
648+ for col in cache_spec .cluster_cols
649+ if bigframes .dtypes .is_clusterable (plan .schema .get_type (col ))
650+ ]
651+ cluster_cols = cluster_cols [:_MAX_CLUSTER_COLUMNS ]
647652
648653 compiled = compile .compile_sql (
649654 compile .CompileRequest (
Original file line number Diff line number Diff line change @@ -5540,7 +5540,7 @@ def test_df_cached(scalars_df_index):
55405540def test_df_cached_many_index_cols (scalars_df_index ):
55415541 index_cols = [
55425542 "int64_too" ,
5543- "geography_col " ,
5543+ "time_col " ,
55445544 "int64_col" ,
55455545 "bool_col" ,
55465546 "date_col" ,
You can’t perform that action at this time.
0 commit comments