You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/05/21 05:12:36 UTC

[GitHub] [druid] avalanchy opened a new issue #11281: How to define the time column in the inline datasource?

avalanchy opened a new issue #11281:
URL: https://github.com/apache/druid/issues/11281


   The only example I found for inline datasource is in the querying datasource page, but it does not contain a time column https://druid.apache.org/docs/latest/querying/datasource.html#inline.
   
   I tried to use `__time` name with a timestamp, millisecond precision timestamp, or ISO8601 but without luck, at least for no `timeBoundary` query.
   
   ```json
   {
     "dataSource": {
       "columnNames": [
         "__time",
         "val"
       ],
       "rows": [
         [
           1556668800000,
           123
         ],
         [
           1559347200000,
           456
         ],
         [
           1561939200000,
           789
         ]
       ],
       "type": "inline"
     },
     "queryType": "timeBoundary"
   }
   ```
   Actual results
   |maxTime               |minTime     |
   |----------------------|------------|
   |146140482-04-24T15:36:27.902Z|-146136543-09-08T08:23:32.096Z|
   
   Expected results
   |maxTime               |minTime     |
   |----------------------|------------|
   |2019-07-01T00:00:00.000Z|2019-05-01T00:00:00.000Z|
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org