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 5e5892f commit c316830Copy full SHA for c316830
bigframes/session/bq_caching_executor.py
@@ -623,14 +623,19 @@ def _execute_plan_gbq(
623
624
create_table = True
625
if not cache_spec.cluster_cols:
626
- assert len(cache_spec.cluster_cols) <= _MAX_CLUSTER_COLUMNS
+
627
offsets_id = bigframes.core.identifiers.ColumnId(
628
bigframes.core.guid.generate_guid()
629
)
630
plan = nodes.PromoteOffsetsNode(plan, offsets_id)
631
cluster_cols = [offsets_id.sql]
632
else:
633
- cluster_cols = cache_spec.cluster_cols
+ cluster_cols = [
634
+ col
635
+ for col in cache_spec.cluster_cols
636
+ if bigframes.dtypes.is_clusterable(plan.schema.get_type(col))
637
+ ]
638
+ cluster_cols = cluster_cols[:_MAX_CLUSTER_COLUMNS]
639
640
compiled = compile.compile_sql(
641
compile.CompileRequest(
0 commit comments