Skip to content

Commit f278db8

Browse files
committed
fix: preserve hidden ordering columns in Block constructor
1 parent fdf3dd7 commit f278db8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

bigframes/core/blocks.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,6 @@ def __init__(
178178
if len(all_value_columns) > len(self._column_labels):
179179
# More columns than labels: Drop the extra columns (assumed to be internal/garbage)
180180
self._value_columns = all_value_columns[: len(self._column_labels)]
181-
# Prune the expression to remove hidden columns
182-
self._expr = self._expr.select_columns(
183-
[*self.index_columns, *self._value_columns]
184-
)
185181
elif len(all_value_columns) < len(self._column_labels):
186182
# Fewer columns than labels: Truncate labels
187183
self._value_columns = all_value_columns

0 commit comments

Comments
 (0)