hbutani / spark-druid-olap

Sparkline BI Accelerator provides fast ad-hoc query capability over Logical Cubes. This has been folded into our SNAP Platform(http://bit.ly/2oBJSpP) an Integrated BI platform on Apache Spark.

Home Page:http://sparklinedata.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rewrite to Druid not happening when tables are cached in Spark

hbutani opened this issue · comments

The query rewrite to Druid is not happening when the spark tables are cached.

explain select
c_mktsegment,

  sum(l_extendedprice) as price
  from customer,
               orders,
               lineitem
  where  dateIsBefore(dateTime(`o_orderdate`),dateTime("1995-03-15")) and dateIsAfter(dateTime(`l_shipdate`),dateTime("1995-03-15"))
               and c_custkey = o_custkey
               and l_orderkey = o_orderkey
  group by c_mktsegment

== Physical Plan ==
image