Skip to content

fix: Open a session without a default schema - #1825

Open
PingLiuPing wants to merge 1 commit into
facebookincubator:mainfrom
PingLiuPing:lp_cli_default_schema
Open

fix: Open a session without a default schema#1825
PingLiuPing wants to merge 1 commit into
facebookincubator:mainfrom
PingLiuPing:lp_cli_default_schema

Conversation

@PingLiuPing

Copy link
Copy Markdown
Contributor
axiom_sql --etc_dir <dir> --catalog <name>` aborted before the prompt:

    Reason: Schema must be specified for connector iceberg

Only three connector names carry a built-in default schema, a catalog with no default could not be opened at all. The session already sets a schema at any point with use <catalog>.<schema>, and a qualified table name needs none.
With this patch, the missing default now leaves the schema empty and prints what to run instead of refusing to start.

Connector registration also moves inside the handler that turns a user error into an Error: line. It ran before it, so a bad flag combination or an unusable catalog file terminated on an uncaught exception rather than the clean message the handler was there to give.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 4, 2026
@PingLiuPing PingLiuPing mentioned this pull request Sep 4, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant