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 2019/07/23 00:26:54 UTC

[GitHub] [incubator-druid] vikramarsid edited a comment on issue #8130: Is there a way to view converted native query for a given sql statement

vikramarsid edited a comment on issue #8130: Is there a way to view converted native query for a given sql statement
URL: https://github.com/apache/incubator-druid/issues/8130#issuecomment-514004618
 
 
   @vogievetsky  Thank you, appreciate your quick response. I have tried  `EXPLAIN PLAN FOR` for the SQL statement and I get back below text which is not a valid native query json.
   Do you have any thoughts here?
   TIA
   ```
   DruidNestedGroupBy(queryBuilder=[DruidQueryBuilder{filter=null, selectProjection=null, grouping=Grouping{dimensions=[DimensionExpression{outputName='d0', expression=DruidExpression{simpleExtraction=d0, expression='"d0"'}, outputType=STRING}, DimensionExpression{outputName='d1', expression=DruidExpression{simpleExtraction=d2, expression='"d2"'}, outputType=STRING}, DimensionExpression{outputName='d2', expression=DruidExpression{simpleExtraction=d3, expression='"d3"'}, outputType=STRING}], aggregations=[Aggregation{virtualColumns=[], aggregatorFactories=[FilteredAggregatorFactory{delegate=CountAggregatorFactory{name='a0'}, filter=!d1 = null}], postAggregator=null}, Aggregation{virtualColumns=[], aggregatorFactories=[LongSumAggregatorFactory{fieldName='a0', expression='null', name='a1'}], postAggregator=null}, Aggregation{virtualColumns=[], aggregatorFactories=[LongMinAggregatorFactory{fieldName='a2', expression='null', name='a2'}], postAggregator=null}, Aggregation{virtualColumns=[], aggregatorFactories=[LongMaxAggregatorFactory{fieldName='a2', expression='null', name='a3'}], postAggregator=null}]}, having=a0 as numeric < 5, limitSpec=null, rowType=RecordType(VARCHAR signature_name, VARCHAR signature_id, VARCHAR appliance_type, BIGINT total_customer_hits, BIGINT total_hits, TIMESTAMP(0) first_seen, TIMESTAMP(0) last_seen), outputRowSignature=RowSignature{d2:STRING, d1:STRING, d0:STRING, a0:LONG, a1:LONG, a2:LONG, a3:LONG}}])
   ```
   

----------------------------------------------------------------
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@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org