+{"name": "with_and_json_object", "skip-reason": "Parser replaces comma with colon inside json_object", "sql": "WITH expanded AS ( SELECT id, product_name, account_id, status FROM orders WHERE id = 123) SELECT json_object('id', id, 'status', status) FROM expanded", "errors": ["Column status is not allowed. Column removed from SELECT clause"], "fix": "WITH expanded AS (SELECT id, product_name, account_id FROM orders WHERE id = 123) SELECT JSON_OBJECT('id', id, 'status', status) FROM expanded", "data": [[123]]}
0 commit comments