Skip to content

Validate required functionName for getFunctions - #533

Merged
vuanhphung merged 1 commit into
mainfrom
vuanhphung/require-get-functions-name
Sep 30, 2026
Merged

vuanhphung merged 1 commit into
mainfrom
vuanhphung/require-get-functions-name

Conversation

@vuanhphung

@vuanhphung vuanhphung commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Follow the FunctionsRequest contract in lib/contracts/IDBSQLSession.ts, which requires a non-null functionName: string. Passing null through to the server causes an exception, so validate it in the shared DBSQLSession.getFunctions() path before dispatching to Thrift or kernel. Null, omitted, and non-string values now raise ParameterError; an empty string remains valid.

Verified with the build, focused getFunctions unit tests, Prettier, and repository lint.


This PR was created with GitHub MCP.

Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>

@peco-review-bot peco-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ No issues identified by the review bot.

@vuanhphung
vuanhphung added this pull request to the merge queue Sep 30, 2026
Merged via the queue into main with commit a02dab3 Sep 30, 2026
34 checks passed
@vuanhphung
vuanhphung deleted the vuanhphung/require-get-functions-name branch September 30, 2026 15:55

This branch was successfully deployed

1 active deployment
azure-prod — e669a3f8 Deployed Sep 29, 2026 by vuanhphung via e2e-test (24) #1620
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants