You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2019/03/30 00:10:02 UTC

[GitHub] [incubator-pinot] xiangfu1 opened a new issue #4039: Cannot filtering on bytes data type

xiangfu1 opened a new issue #4039: Cannot filtering on  bytes data type
URL: https://github.com/apache/incubator-pinot/issues/4039
 
 
   Table schema:
   ```
   {
     "metricFieldSpecs": [
     ],
     "dimensionFieldSpecs": [
       {
         "dataType": "BYTES",
         "name": "uuid"
       },
       ...
     ],
     "timeFieldSpec": {
       "incomingGranularitySpec": {
         "dataType": "LONG",
         "timeType": "MILLISECONDS",
         "name": "start_time_millis"
       }
     },
     "schemaName": "myTable"
   }
   ```
   Sample query:
   ```
   select * from myTable where uuid = "c8b3bce0b378fc5ce8067fc271a34892" limit 10
   ```
   
   Exceptions got:
   ```
   {
       "exceptions": [
       {
           "message": "QueryExecutionError:\njava.lang.ClassCastException: java.lang.String cannot be cast to [B\n\tat org.apache.pinot.core.realtime.impl.dictionary.BytesOnHeapMutableDictionary.indexOf(BytesOnHeapMutableDictionary.java:36)\n\tat org.apache.pinot.core.operator.filter.predicate.EqualsPredicateEvaluatorFactory$DictionaryBasedEqPredicateEvaluator.<init>(EqualsPredicateEvaluatorFactory.java:76)\n\tat org.apache.pinot.core.operator.filter.predicate.EqualsPredicateEvaluatorFactory.newDictionaryBasedEvaluator(EqualsPredicateEvaluatorFactory.java:43)\n\tat org.apache.pinot.core.operator.filter.predicate.PredicateEvaluatorProvider.getPredicateEvaluator(PredicateEvaluatorProvider.java:44)\n\tat org.apache.pinot.core.plan.FilterPlanNode.constructPhysicalOperator(FilterPlanNode.java:105)\n\tat org.apache.pinot.core.plan.FilterPlanNode.run(FilterPlanNode.java:55)\n\tat org.apache.pinot.core.plan.DocIdSetPlanNode.run(DocIdSetPlanNode.java:52)\n\tat org.apache.pinot.core.plan.ProjectionPlanNode.run(ProjectionPlanNode.java:56)\n\tat org.apache.pinot.core.plan.SelectionPlanNode.run(SelectionPlanNode.java:69)\n\tat org.apache.pinot.core.plan.CombinePlanNode.run(CombinePlanNode.java:77)\n\tat org.apache.pinot.core.plan.InstanceResponsePlanNode.run(InstanceResponsePlanNode.java:38)\n\tat org.apache.pinot.core.plan.GlobalPlanImplV0.execute(GlobalPlanImplV0.java:45)\n\tat org.apache.pinot.core.query.executor.ServerQueryExecutorV1Impl.processQuery(ServerQueryExecutorV1Impl.java:164)\n\tat org.apache.pinot.core.query.scheduler.QueryScheduler.processQueryAndSerialize(QueryScheduler.java:131)",
           "errorCode": 200
       }],
       "numServersQueried": 1,
       "numServersResponded": 1,
       "numSegmentsQueried": 1,
       "numSegmentsProcessed": 0,
       "numSegmentsMatched": 0,
       "numDocsScanned": 0,
       "numEntriesScannedInFilter": 0,
       "numEntriesScannedPostFilter": 0,
       "numGroupsLimitReached": false,
       "totalDocs": 0,
       "timeUsedMs": 335,
       "segmentStatistics": [],
       "traceInfo": {}
   }
   ```

----------------------------------------------------------------
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


With regards,
Apache Git Services

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