Skip to content

feat: remove bqsql magic to make that name available for bigframes#210

Merged
tswast merged 2 commits intomainfrom
remove-bqsql-magic-18023458691533748703
Feb 4, 2026
Merged

feat: remove bqsql magic to make that name available for bigframes#210
tswast merged 2 commits intomainfrom
remove-bqsql-magic-18023458691533748703

Conversation

@tswast
Copy link
Collaborator

@tswast tswast commented Feb 4, 2026

Removes the %%bqsql magic alias.

Changes:

  • Removed ipython.register_magic_function call for bqsql in bigquery_magics/__init__.py.
  • Removed %%bqsql references from bigquery_magics/bigquery.py docstring.
  • Removed bqsql from test_extension_load parametrization in tests/unit/bigquery/test_bigquery.py.
  • Removed %%bqsql references and examples from README.rst and docs/magics.rst.

PR created automatically by Jules for task 18023458691533748703 started by @tswast

Removes the `%%bqsql` magic alias, including its registration in `__init__.py`,
references in documentation (README.rst, magics.rst, docstrings), and unit tests.
This magic was an alias for `%%bigquery`.

Co-authored-by: tswast <247555+tswast@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@tswast tswast requested review from a team as code owners February 4, 2026 19:24
@tswast tswast requested a review from GarrettWu February 4, 2026 19:24
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Feb 4, 2026
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery-magics API. label Feb 4, 2026
@gemini-code-assist
Copy link

Summary of Changes

Hello @tswast, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request streamlines the BigQuery IPython magics by completely removing the %%bqsql alias. This change simplifies the API by consolidating functionality under the %%bigquery magic, reducing redundancy and potential confusion for users. The modifications span across the core registration, documentation, and testing to ensure a clean and consistent removal.

Highlights

  • Magic Function Deregistration: The %%bqsql magic function has been deregistered from IPython, meaning it will no longer be available for use.
  • Documentation Updates: All references to %%bqsql have been removed from the README.rst, docs/magics.rst, and the docstring of bigquery_magics/bigquery.py to reflect its removal.
  • Test Suite Refinement: The test_extension_load parametrization in tests/unit/bigquery/test_bigquery.py has been updated to no longer include bqsql, ensuring tests align with the removal of the magic.
Changelog
  • README.rst
    • Removed the %%bqsql example and explanatory text, simplifying the usage instructions.
  • bigquery_magics/init.py
    • Removed the ipython.register_magic_function call for bqsql, effectively disabling the magic.
  • bigquery_magics/bigquery.py
    • Updated the docstring to remove %%bqsql as an alternative to %%bigquery, clarifying the available magic commands.
  • docs/magics.rst
    • Updated the documentation to state that only the %%bigquery magic is available, removing references to %%bqsql.
  • tests/unit/bigquery/test_bigquery.py
    • Removed bqsql from the test_extension_load parametrization, ensuring the test suite no longer expects or validates the bqsql magic.
Activity
  • No specific activity (comments, reviews, etc.) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly removes the %%bqsql magic alias across the codebase, including its registration, documentation, and tests. The changes are straightforward and well-executed. I've added one minor suggestion in the test file to improve code style and readability after the removal of a parameter.

@tswast tswast changed the title Remove bqsql magic feat: remove bqsql magic to make that name available for bigframes Feb 4, 2026
Removes the `%%bqsql` magic alias, including its registration in `__init__.py`,
references in documentation (README.rst, magics.rst, docstrings), and unit tests.
This magic was an alias for `%%bigquery`.

Co-authored-by: tswast <247555+tswast@users.noreply.github.com>
@tswast tswast merged commit c46c94a into main Feb 4, 2026
25 checks passed
@tswast tswast deleted the remove-bqsql-magic-18023458691533748703 branch February 4, 2026 22:36
@tswast
Copy link
Collaborator Author

tswast commented Feb 4, 2026

googleapis/python-bigquery-dataframes#2395 to add this in bigframes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the googleapis/python-bigquery-magics API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants