[
https://issues.apache.org/jira/browse/DRILL-3556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jacques Nadeau updated DRILL-3556:
----------------------------------
Attachment: DRILL-3556.patch
Updated, hits issue with Calcite
{code}
Caused by: java.lang.AssertionError: Was not expecting value 'MAP' for
enumeration 'org.apache.calcite.sql.type.SqlTypeName' in this context
at org.apache.calcite.util.Util.unexpected(Util.java:1826)
~[calcite-core-1.4.0-drill-r2.jar:1.4.0-drill-r2]
at
org.apache.calcite.sql.SqlLiteral.valueMatchesType(SqlLiteral.java:214)
~[calcite-core-1.4.0-drill-r2.jar:1.4.0-drill-r2]
at org.apache.calcite.sql.SqlLiteral.<init>(SqlLiteral.java:166)
~[calcite-core-1.4.0-drill-r2.jar:1.4.0-drill-r2]
at
org.apache.drill.exec.planner.sql.parser.JsonLiteral.<init>(JsonLiteral.java:42)
~[classes/:na]
{code}
> Add support for using Json literals directly in SQL syntax
> ----------------------------------------------------------
>
> Key: DRILL-3556
> URL: https://issues.apache.org/jira/browse/DRILL-3556
> Project: Apache Drill
> Issue Type: New Feature
> Components: SQL Parser
> Reporter: Jacques Nadeau
> Assignee: Jacques Nadeau
> Fix For: 1.3.0
>
> Attachments: DRILL-3556.patch, DRILL-3556.patch
>
>
> This is the basic work to support using JSON literals. We can open other
> JIRAs for things such as embedded column references, where clause use, etc.
> Example:
> {code}
> SELECT {"my":"data", "foo":"bar"} FROM (VALUES 1)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)