You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cosmosdb): improve grammar compatibility with coalesce, FROM rework, and more
Add missing CosmosDB SQL syntax features validated against official docs,
reference grammars (Azure ANTLR, Vercel PEG), and CosmosDB emulator.
Lexer: ESCAPE, ARRAY, ROOT, RANK keywords; <> and ?? operators;
-- line comments; Infinity/NaN constants (case-sensitive).
Parser: ?? coalesce at OR precedence; ARRAY(subquery); LIKE ESCAPE;
parameter in bracket access c[@param]; <> inequality.
FROM clause: reworked to support ROOT, subroot paths (container.property),
IN iteration (s IN container.sizes), subqueries, flexible JOINs.
Keywords as property names: 17 keywords usable after dot (c.select, c.from, etc).
ORDER BY RANK for full-text search syntax.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments