File tree Expand file tree Collapse file tree 2 files changed +11
-14
lines changed
third_party/bigframes_vendored/ibis/expr/operations Expand file tree Collapse file tree 2 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -1169,20 +1169,18 @@ def explode(
1169
1169
) -> Block :
1170
1170
expr = self .expr .explode (column_ids )
1171
1171
if ignore_index :
1172
- new_index_col_id = guid . generate_guid ( "explode_index_" )
1173
- expr = expr .promote_offsets ( new_index_col_id )
1174
- expr = expr . drop_columns ( self .index_columns )
1175
- index_columns = [ new_index_col_id ]
1176
- index_labels = [ None ]
1172
+ return Block (
1173
+ expr .drop_columns ( self . index_columns ),
1174
+ column_labels = self .column_labels ,
1175
+ index_columns = [],
1176
+ )
1177
1177
else :
1178
- index_columns = list (self .index_columns )
1179
- index_labels = self .column_labels .names
1180
- return Block (
1181
- expr ,
1182
- column_labels = self .column_labels ,
1183
- index_columns = index_columns ,
1184
- index_labels = index_labels ,
1185
- )
1178
+ return Block (
1179
+ expr ,
1180
+ column_labels = self .column_labels ,
1181
+ index_columns = self .index_columns ,
1182
+ index_labels = self .column_labels .names ,
1183
+ )
1186
1184
1187
1185
def _standard_stats (self , column_id ) -> typing .Sequence [agg_ops .UnaryAggregateOp ]:
1188
1186
"""
Original file line number Diff line number Diff line change 5
5
from ibis .expr .operations .core import Unary
6
6
7
7
8
- # TODO: add this function to ibis
9
8
class GenerateArray (Unary ):
10
9
dtype = dt .Array (dt .int64 )
You can’t perform that action at this time.
0 commit comments