drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhallamudi Venkata Siva Kamesh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-2440) Single value date functions do not work
Date Thu, 12 Mar 2015 14:45:38 GMT

    [ https://issues.apache.org/jira/browse/DRILL-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14358745#comment-14358745
] 

Bhallamudi Venkata Siva Kamesh commented on DRILL-2440:
-------------------------------------------------------

Executed queries 
{noformat}
0: jdbc:drill:zk=localhost:2181> select dob from mongo.usda.`test`;
+------------+
|    dob     |
+------------+
| {}         |
| {}         |
| {"$date":"2010-01-01T00:00:00.000Z"} |
+------------+
3 rows selected (0.052 seconds)
0: jdbc:drill:zk=localhost:2181> SELECT CURRENT_DATE FROM mongo.usda.`test`;
+--------------+
| CURRENT_DATE |
+--------------+
| 2015-03-12   |
| 2015-03-12   |
| 2015-03-12   |
+--------------+
3 rows selected (0.207 seconds)
{noformat}

Can you let me know, what kind of queries failing?

> Single value date functions do not work
> ---------------------------------------
>
>                 Key: DRILL-2440
>                 URL: https://issues.apache.org/jira/browse/DRILL-2440
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 0.7.0
>         Environment: Windows embeded mode. MongoDB plugin
>            Reporter: Filip Grabowski
>
> I configured Apache drill and connected to Mongo and created some nice queries.
> This is a query that works fine - just a proof that the environment is configured.
> SELECT interactionDateTime FROM interactionrecord limit 5;
> { "$date" : "2015-03-05T00:08:10.753Z"}
> { "$date" : "2015-03-05T00:08:10.794Z"}
> { "$date" : "2015-03-05T00:08:10.803Z"}
> { "$date" : "2015-03-05T00:08:35.180Z"}
> { "$date" : "2015-03-05T00:08:35.180Z"}
> This simple query fails regardless of upper or lower case of function name. Similarly
fail other queries that use other data time functions. This one seemed the simplest...
> SELECT CURRENT_DATE FROM interactionrecord limit 5;
> Query failed to execute. Execute Query failed. 
> Error type: Odbc error. Odbc operation attempted: SQLExecDirect. [S1000:1040: on HSTMT]
[MapR][Drill] (1040) Drill failed to execute the query: SELECT CURRENT_DATE FROM interactionrecord
limit 5
> [30024]Query execution error. Details:[ 
> Query stopped., Failure while trying to materialize incoming schema. Errors:
> Error in expression at index -1. Error: Missing function implementation: [extractDay(MAP-REQUIRED)].
Full expression: --UNKNOWN EXPRESSION--.. [ 714416ec-e841-4443-8d70-bbb351547ddd on Window764bi-0:31010
]
> ]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message