You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2015/08/05 22:54:05 UTC
[jira] [Created] (CALCITE-829) Parser for JSON-serialized plans
should be more liberal
Julian Hyde created CALCITE-829:
-----------------------------------
Summary: Parser for JSON-serialized plans should be more liberal
Key: CALCITE-829
URL: https://issues.apache.org/jira/browse/CALCITE-829
Project: Calcite
Issue Type: Bug
Reporter: Julian Hyde
Assignee: Julian Hyde
Following CALCITE-812, the writer and reader for serialized plans (RelJsonWriter, RelJsonReader) adhere to strict JSON. The writer should continue to emit strict JSON but the reader should accept extended JSON: unquoted keys, strings enclosed in single quotes, and comments.
Per the robustness principle https://en.wikipedia.org/wiki/Robustness_principle we should "be conservative in what we send, be liberal in what we accept".
One of the reasons we chose JSON is because it can be written by humans. If we require strict JSON we diminish that.
Similar arguments apply to the JSON model, but are outside the scope of this issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)