Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/python-bigquery-dataframes
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.30.0
Choose a base ref
...
head repository: googleapis/python-bigquery-dataframes
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.31.0
Choose a head ref
  • 10 commits
  • 59 files changed
  • 6 contributors

Commits on Dec 3, 2025

  1. feat: add 'weekday' property to DatatimeMethod (#2304)

    Fixes b/464971054 🦕
    sycai authored Dec 3, 2025
    Configuration menu
    Copy the full SHA
    fafd7c7 View commit details
    Browse the repository at this point in the history
  2. feat: add bigframes.bigquery.ml methods (#2300)

    This PR adds support for `CREATE MODEL` statement in BigQuery ML via
    `bigframes.bigquery.ml.create_model`.
    It includes DDL generation logic handling various clauses like
    TRANSFORM, OPTIONS, remote models, and different data input formats.
    It also refactors `bigframes.core.sql` into a package to support the new
    submodule.
    
    
    ---
    *PR created automatically by Jules for task
    [3846335972146851433](https://jules.google.com/task/3846335972146851433)
    started by @tswast*
    
    ---------
    
    Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
    Co-authored-by: Tim Sweña <swast@google.com>
    google-labs-jules[bot] and tswast authored Dec 3, 2025
    Configuration menu
    Copy the full SHA
    719b278 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2025

  1. Fix: Defer TableWidget import to prevent ZMQ port conflicts (#2309)

    This PR addresses a flaky ZMQError: Address already in use that
    occasionally occurred during parallel notebook test execution.
    
      **Problem:**
    The bigframes.display module eagerly imported anywidget and traitlets at
    module load time (`bigframes/display/__init__.py`). This meant that when
    multiple Jupyter kernels were spun up simultaneously by nox for parallel
    testing, they would all try to initialize traitlets.HasTraits objects
    with sync=True properties. This led to race conditions and ZMQ port
    conflicts, causing notebook tests (including those that did not directly
    use anywidget like `streaming_dataframe.ipynb`) to fail. Log is
    [here](https://fusion2.corp.google.com/invocations/72088900-0196-4441-944b-ad68e491a8f8/targets/bigframes%2Fpresubmit%2Fnotebook/log).
    
      **Solution:**
    The TableWidget class import in `bigframes/display/__init__.py` has been
    refactored to use Python's `__getattr__` for lazy loading. This ensures
    that anywidget and traitlets are only imported and their associated
    kernel communication channels are initialized when display.TableWidget
    is actually accessed by the code. This prevents premature initialization
    and eliminates the port collision race condition during parallel test
    startup.
    
    Fixes #<465768150> 🦕
    shuoweil authored Dec 4, 2025
    Configuration menu
    Copy the full SHA
    7e959b9 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2025

  1. chore: Migrate DatetimeToIntegerLabelOp operator to SQLGlot (#2306)

    Thank you for opening a Pull Request! Before submitting your PR, there
    are a few things you can do to make sure it goes smoothly:
    - [ ] Make sure to open an issue as a
    [bug/issue](https://github.com/googleapis/python-bigquery-dataframes/issues/new/choose)
    before writing your code! That way we can discuss the change, evaluate
    designs, and agree on the general idea
    - [ ] Ensure the tests and linter pass
    - [ ] Code coverage does not decrease (if any source code was changed)
    - [ ] Appropriate docs were updated (if necessary)
    
    Fixes b/447388852 🦕
    jialuoo authored Dec 5, 2025
    Configuration menu
    Copy the full SHA
    dbb0339 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2025

  1. chore: fix pytest crash on pandas 3.0 due to missing SettingWithCopyW…

    …arning (#2314)
    
    Moved `ignore::pandas.errors.SettingWithCopyWarning` from `pytest.ini`
    to `conftest.py` with a check for its existence. This fixes
    `AttributeError: module 'pandas.errors' has no attribute
    'SettingWithCopyWarning'` when running tests against pandas 3.0.
    
    ---
    *PR created automatically by Jules for task
    [1336882389279070030](https://jules.google.com/task/1336882389279070030)
    started by @tswast*
    
    Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
    google-labs-jules[bot] authored Dec 8, 2025
    Configuration menu
    Copy the full SHA
    d2e8cb4 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2025

  1. Configuration menu
    Copy the full SHA
    147aad9 View commit details
    Browse the repository at this point in the history
  2. fix: cache DataFrames to temp tables in bigframes.bigquery.ml methods…

    … to avoid time travel (#2318)
    
    See internal issue b/310266666 🦕
    tswast authored Dec 9, 2025
    Configuration menu
    Copy the full SHA
    d993831 View commit details
    Browse the repository at this point in the history
  3. revert: DataFrame display uses IPython's _repr_mimebundle_ (#2316)

    revert "refactor: Migrate DataFrame display to use IPython's
    _repr_mimebundle_() protocol for anywidget mode (#2271)"
    
    This reverts commit 41630b5 for bug
    466155761.
    Verified at Colab: screen/AjTEQC8SrSfMqhN
    
    Fixes #< 466155761 > 🦕
    shuoweil authored Dec 9, 2025
    Configuration menu
    Copy the full SHA
    e4e3ec8 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2025

  1. chore: Move long-running LLM tests to the large directory (#2323)

    Moved long-running ML tests to the large directory to improve test suite
    organization and execution time management. This involves creating new
    test files in `tests/system/large/ml/` and appending to existing ones,
    while removing the corresponding tests from `tests/system/small/ml/`.
    
    ---
    *PR created automatically by Jules for task
    [11110816135219701367](https://jules.google.com/task/11110816135219701367)
    started by @tswast*
    
    ---------
    
    Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
    google-labs-jules[bot] authored Dec 10, 2025
    Configuration menu
    Copy the full SHA
    29bf680 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2025

  1. chore: librarian release pull request: 20251210T234907Z (#2324)

    PR created by the Librarian CLI to initialize a release. Merging this PR
    will auto trigger a release.
    
    Librarian Version: v0.7.0
    Language Image:
    us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:c8612d3fffb3f6a32353b2d1abd16b61e87811866f7ec9d65b59b02eb452a620
    <details><summary>bigframes: 2.31.0</summary>
    
    ##
    [2.31.0](v2.30.0...v2.31.0)
    (2025-12-10)
    
    ### Features
    
    * add `bigframes.bigquery.ml` methods (#2300)
    ([719b278](719b278c))
    
    * add &#39;weekday&#39; property to DatatimeMethod (#2304)
    ([fafd7c7](fafd7c73))
    
    ### Bug Fixes
    
    * cache DataFrames to temp tables in bigframes.bigquery.ml methods to
    avoid time travel (#2318)
    ([d993831](d9938319))
    
    ### Reverts
    
    * DataFrame display uses IPython&#39;s `_repr_mimebundle_` (#2316)
    ([e4e3ec8](e4e3ec85))
    
    </details>
    TrevorBergeron authored Dec 11, 2025
    Configuration menu
    Copy the full SHA
    fd5eae0 View commit details
    Browse the repository at this point in the history
Loading