Skip to content

Validate required functionName for getFunctions - #533

Open
vuanhphung wants to merge 1 commit into
mainfrom
vuanhphung/require-get-functions-name
Open

vuanhphung wants to merge 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.

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