Skip to content

Commit 4ccae0f

Browse files
fix json_extract doctest
1 parent 8f1f2a8 commit 4ccae0f

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

bigframes/bigquery/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def json_extract(
224224
225225
>>> s = bpd.Series(['{"class": {"students": [{"id": 5}, {"id": 12}]}}'])
226226
>>> bbq.json_extract(s, json_path="$.class")
227-
0 "{\\\"students\\\":[{\\\"id\\\":5},{\\\"id\\\":12}]}"
227+
0 {"students":[{"id":5},{"id":12}]}
228228
dtype: string
229229
230230
Args:

bigframes/core/compile/compiled.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,6 @@ def _to_ibis_expr(
322322
if not columns:
323323
return ibis.memtable([])
324324

325-
# Make sure all dtypes are the "canonical" ones for BigFrames. This is
326-
# important for operations like UNION where the schema must match.
327325
table = self._table.select(columns)
328326
base_table = table
329327
if self._reduced_predicate is not None:
@@ -1031,8 +1029,6 @@ def _to_ibis_expr(
10311029
# Make sure we don't have any unbound (deferred) columns.
10321030
table = self._table.select(columns)
10331031

1034-
# Make sure all dtypes are the "canonical" ones for BigFrames. This is
1035-
# important for operations like UNION where the schema must match.
10361032
table = table.select(table[column] for column in table.columns)
10371033
base_table = table
10381034
if self._reduced_predicate is not None:

stats.prof

-202 KB
Binary file not shown.

0 commit comments

Comments
 (0)