We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a7a5b5 commit baf4b88Copy full SHA for baf4b88
tests/e2e/bq/feature-stats.py
@@ -259,7 +259,9 @@ def clear_unsupported_fields(datasets):
259
if feature.HasField("num_stats"):
260
feature.num_stats.common_stats.ClearField("num_values_histogram")
261
for hist in feature.num_stats.histograms:
262
- hist.buckets[:] = sorted(hist.buckets, key=lambda k: k["highValue"])
+ sorted_buckets = sorted(hist.buckets, key=lambda k: k["highValue"])
263
+ del hist.buckets[:]
264
+ hist.buckets.extend(sorted_buckets)
265
elif feature.HasField("string_stats"):
266
feature.string_stats.common_stats.ClearField("num_values_histogram")
267
for bucket in feature.string_stats.rank_histogram.buckets:
0 commit comments