Skip to content

Conversation

@dmadisetti
Copy link
Collaborator

📝 Summary

Starting point to format SQL errors in a bit more friendly manner. @Light2Dark let me know if you want to take over this branch, or create a PR against it.

image

Not sure what's up with my codegen? I can cherry pick the commit if it's a little too noisy.

@vercel
Copy link

vercel bot commented Sep 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
marimo-docs Ready Ready Preview Comment Sep 24, 2025 1:54am

@github-actions github-actions bot added the bash-focus Area to focus on during release bug bash label Sep 23, 2025
@github-actions
Copy link

Breaking changes detected in the OpenAPI specification!

@github-actions
Copy link

Breaking changes detected in the OpenAPI specification!

import duckdb

if isinstance(
exception, (duckdb.duckdb.ParserException, duckdb.ProgrammingError)
Copy link
Contributor

Choose a reason for hiding this comment

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

can we handle catalog errors as well (duckdb might call them BinderErrors)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Covered by ProgrammingError

"""Check if the exception is a SQL parsing error."""
# Check for DuckDB exceptions first (most common)
try:
import duckdb
Copy link
Contributor

Choose a reason for hiding this comment

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

should we do DependencyManager.duckdb.imported() to avoid the import if not needed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done!

@github-actions
Copy link

Breaking changes detected in the OpenAPI specification!

1 similar comment
@github-actions
Copy link

Breaking changes detected in the OpenAPI specification!

@github-actions
Copy link

Breaking changes detected in the OpenAPI specification!

1 similar comment
@github-actions
Copy link

Breaking changes detected in the OpenAPI specification!

mscolnick
mscolnick previously approved these changes Sep 24, 2025
Copy link
Contributor

@mscolnick mscolnick left a comment

Choose a reason for hiding this comment

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

CI is failing

@github-actions
Copy link

Breaking changes detected in the OpenAPI specification!

1 similar comment
@github-actions
Copy link

Breaking changes detected in the OpenAPI specification!

@mscolnick mscolnick merged commit e2e1556 into main Sep 24, 2025
25 of 45 checks passed
@mscolnick mscolnick deleted the dm/sql-plumb branch September 24, 2025 02:20
@mscolnick
Copy link
Contributor

merging even though is breaks main, in order to unblock other folks

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

Labels

bash-focus Area to focus on during release bug bash

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants