Fix SQL output binding for native json data type columns#1222
Draft
Copilot wants to merge 3 commits into
Draft
Conversation
…nvalid json(max) syntax Map native SQL json columns to nvarchar(max) in the OPENJSON WITH clause, since the json data type does not accept a length specifier and may not be directly supported in OPENJSON WITH on all platforms. Agent-Logs-Url: https://github.com/Azure/azure-functions-sql-extension/sessions/da64a8d9-f082-4aae-8808-820e4a41806c Co-authored-by: VasuBhog <23587151+VasuBhog@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix unsupported syntax in SQL output binding for JSON
Fix SQL output binding for native json data type columns
Apr 7, 2026
Agent-Logs-Url: https://github.com/Azure/azure-functions-sql-extension/sessions/5ee28e1d-9882-46e4-9bc0-f0b7d38ddee5 Co-authored-by: VasuBhog <23587151+VasuBhog@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GetColumnDefinitionsQuery()insrc/SqlAsyncCollector.csto handle the nativejsondata type by mapping it tonvarchar(max)in theOPENJSON WITHclause, preventing the invalidjson(max)syntaxGetColumnDefinitionsQueryto verify the generated SQL maps json columns tonvarchar(max)