Commit 5663d2a
docs: update notebook for JSON subfields support in to_pandas_batches() (#2138)
* change to ai.generate
* perf: Default to interactive display for SQL in anywidget mode
Previously, SQL queries in anywidget mode would fall back to deferred execution, showing a dry run instead of an interactive table.
This change modifies the display logic to directly use the anywidget interactive display for SQL queries, providing a more consistent and responsive user experience. A test case has been added to verify this behavior.
* fix: resolve double printing issue in anywidget mode
* feat: Add test case for STRUCT column in anywidget
Adds a test case to verify that a DataFrame with a STRUCT column is
correctly displayed in anywidget mode.
This test confirms that displaying a STRUCT column does not raise an
exception that would trigger the fallback to the deferred representation.
It mocks `IPython.display.display` to capture the `TableWidget` instance
and asserts that the rendered HTML contains the expected string
representation of the STRUCT data.
* fix presubmit
* Revert accidental changes to test_function.py
* revert accidental change to blob.py
* change return type
* add todo and revert change
* Revert "add todo and revert change"
This reverts commit 153e1d2.
* Add todo
* Fix: Handle JSON dtype in anywidget display
This commit fixes an AttributeError that occurred when displaying a
DataFrame with a JSON column in anywidget mode. The dtype check
was incorrect and has been updated. Additionally, the SQL compilation
for casting JSON to string has been corrected to use TO_JSON_STRING.
* revert a change
* revert a change
* Revert: Restore bigframes/dataframe.py to state from 42da847
* remove anywidget from early return, allow execution proceeds to _repr_html_()
* remove unnecessary changes
* remove redundant code change
* code style change
* tescase update
* revert a change
* final touch of notebook
* fix presumbit error
* remove invlaid test with anywidget bug fix
* fix presubmit
* fix polar complier
* Revert an unnecessary change
* apply the workaround to i/O layer
* Revert scalar_op_registry.py chnage
* remove unnecessary import
* Remove duplicate conversation
* revert changes to test_dataframe.py
* notebook update
* call API on local data for complier.py
* add more testcase
* modfiy polars import
* fix failed tests
* chore: Migrate minimum_op operator to SQLGlot (#2205)
* chore: Migrate round_op operator to SQLGlot (#2204)
This commit migrates the `round_op` operator from the Ibis compiler to the SQLGlot compiler.
* fix: Improve error handling in blob operations (#2194)
* add error handling for audio_transcribe
* add error handling for pdf functions
* add eror handling for image functions
* final touch
* restore rename
* update notebook to better reflect our new code change
* return None on error with verbose=False for image functions
* define typing module in udf
* only use local variable
* Refactor code
* refactor: update geo "spec" and split geo ops in ibis compiler (#2208)
* feat: support INFORMATION_SCHEMA views in `read_gbq` (#1895)
* feat: support INFORMATION_SCHEMA tables in read_gbq
* avoid storage semi executor
* use faster tables for peek tests
* more tests
* fix mypy
* Update bigframes/session/_io/bigquery/read_gbq_table.py
* immediately query for information_schema tables
* Fix mypy errors and temporarily update python version
* snapshot
* snapshot again
* Revert: Unwanted code changes
* Revert "Revert: Unwanted code changes"
This reverts commit db5d8ea.
* revert 1 files to match main branch
* Correctly display DataFrames with JSON columns in anywidget
* add mis-deleted comment back
* revert unnecessary change
* move helper function to dtypes.py
* revert unnecessary testcase change
* Improve JSON type handling for to_gbq and to_pandas_batches
* Remove unnecessary comment
* Revert bigframes/dtypes.py and mypy.ini to main branch version
---------
Co-authored-by: jialuoo <[email protected]>
Co-authored-by: Tim Sweña (Swast) <[email protected]>1 parent 196f6df commit 5663d2a
1 file changed
+133
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
39 | 48 | | |
40 | 49 | | |
41 | 50 | | |
| |||
142 | 151 | | |
143 | 152 | | |
144 | 153 | | |
145 | | - | |
| 154 | + | |
146 | 155 | | |
147 | | - | |
| 156 | + | |
148 | 157 | | |
149 | 158 | | |
150 | 159 | | |
| |||
205 | 214 | | |
206 | 215 | | |
207 | 216 | | |
208 | | - | |
| 217 | + | |
209 | 218 | | |
210 | | - | |
| 219 | + | |
211 | 220 | | |
212 | 221 | | |
213 | 222 | | |
214 | 223 | | |
215 | 224 | | |
| 225 | + | |
216 | 226 | | |
217 | | - | |
| 227 | + | |
218 | 228 | | |
219 | 229 | | |
220 | 230 | | |
| |||
283 | 293 | | |
284 | 294 | | |
285 | 295 | | |
286 | | - | |
287 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
288 | 317 | | |
289 | 318 | | |
290 | 319 | | |
| |||
304 | 333 | | |
305 | 334 | | |
306 | 335 | | |
307 | | - | |
| 336 | + | |
308 | 337 | | |
309 | | - | |
| 338 | + | |
310 | 339 | | |
311 | 340 | | |
312 | 341 | | |
313 | 342 | | |
314 | 343 | | |
| 344 | + | |
315 | 345 | | |
316 | | - | |
| 346 | + | |
317 | 347 | | |
318 | 348 | | |
319 | 349 | | |
| |||
323 | 353 | | |
324 | 354 | | |
325 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
326 | 446 | | |
327 | 447 | | |
328 | 448 | | |
329 | 449 | | |
330 | | - | |
| 450 | + | |
331 | 451 | | |
332 | 452 | | |
333 | 453 | | |
| |||
341 | 461 | | |
342 | 462 | | |
343 | 463 | | |
344 | | - | |
| 464 | + | |
345 | 465 | | |
346 | 466 | | |
347 | 467 | | |
| |||
0 commit comments