Hitachi Vantara Pentaho Community Wiki
Child pages
  • PA_CR_PA-3.9.X_presto-0.100

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Feature

Status

Notes

Concurrency and Thread Safety


 

Degenerate Schemas

 

Star Schemas


 

Snowflake Schemas


 

Filters


 

Top Count


setMaxRows() is not implemented correctly in the JDBC driver.

Aggregation Tables


Aggregation Implicit aggregation tables are not recognized by Mondrian. The JDBC driver does not implement java.sql.DatabaseMetaData.getTables

Null Values & Keys


 

Inline Tables


 

Distinct Count


Not all forms of distinct counts are supported, although the minimum support it offers is sufficient for Mondrian.

Grouping Sets


Grouping sets are not supported.

...

Test

Result

org.pentaho.mondrian.tck.AggregationTest.testCompoundColumnSQL

Cannot batch multiple distinct count columns with the following syntax

Code Block
Caused by: com.facebook.presto.spi.PrestoException: Unexpected parameters (double, bigint) for function count. Expected: count() , count(T) T
 at com.facebook.presto.metadata.FunctionRegistry.resolveFunction(FunctionRegistry.java:465)
 at com.facebook.presto.metadata.MetadataManager.resolveFunction(MetadataManager.java:148)
 at com.facebook.presto.sql.analyzer.ExpressionAnalyzer$Visitor.visitFunctionCall(ExpressionAnalyzer.java:673)
 at com.facebook.presto.sql.analyzer.ExpressionAnalyzer$Visitor.visitFunctionCall(ExpressionAnalyzer.java:208)
 at com.facebook.presto.sql.tree.FunctionCall.accept(FunctionCall.java:70)

Aggregation Tables

Symptom

The driver's metadata does not provide Mondrian with a list of the available tables. This prevents Mondrian from automatically discovering the available tables. It will howeverwork when the aggregation tables are defined explicitly in the Mondrian schema.

Failed tests

Test

Result

org.pentaho.mondrian.tck.AggregationTablesRecognitionTest.testAggregationRecognition


Code Block
java.lang.AssertionError: Expected sql was not executed:
select
    sum(agg_c_10_sales_fact_1997.customer_count) m0
from
    agg_c_10_sales_fact_1997 agg_c_10_sales_fact_1997
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.pentaho.mondrian.tck.MondrianExpectation.verifySqls(MondrianExpectation.java:119)
	at org.pentaho.mondrian.tck.MondrianExpectation.verify(MondrianExpectation.java:91)
	at org.pentaho.mondrian.tck.MondrianContext.verify(MondrianContext.java:167)
	at org.pentaho.mondrian.tck.AggregationTablesRecognitionTest$2.run(AggregationTablesRecognitionTest.java:93)
	at org.pentaho.mondrian.tck.PropertyContext.execute(PropertyContext.java:40)
	at org.pentaho.mondrian.tck.AggregationTablesRecognitionTest.testAggregationRecognition(AggregationTablesRecognitionTest.java:77)

Grouping sets

Symptom

Queries which use grouping sets are not supported. This is a optimization feature supported by some more advanced databases. It allows to batch cell requests and improve the overall performance.

Failed tests

Test

Result

org.pentaho.mondrian.tck.GroupingSetTest.testEmptyEntry

Grouping set queries are not supported.

Code Block
select
    customer.gender as gender, sum(sales_fact_1997.store_cost) as sum_cost
from
    time_by_day, sales_fact_1997, customer
where
    (sales_fact_1997.time_id = time_by_day.time_id and time_by_day.the_year = 1997
    and sales_fact_1997.customer_id = customer.customer_id)
group by grouping sets
    ((customer.gender),())

org.pentaho.mondrian.tck.GroupingSetTest.testPlainEntry

Grouping set queries are not supported.

Code Block
select
    customer.gender as gender, sum(sales_fact_1997.store_cost) as sum_cost
from
    time_by_day, sales_fact_1997, customer
where
    (sales_fact_1997.time_id = time_by_day.time_id and time_by_day.the_year = 1997
    and sales_fact_1997.customer_id = customer.customer_id)
group by grouping sets
    ((customer.gender))

org.pentaho.mondrian.tck.GroupingSetTest.testComplexEntry

Grouping set queries are not supported.

Code Block
select
    time_by_day.the_year as the_year, customer.gender as gender, sum(sales_fact_1997.store_cost) as sum_cost
from
    time_by_day, sales_fact_1997, customer
where
    (sales_fact_1997.time_id = time_by_day.time_id and time_by_day.the_year = 1997
    and sales_fact_1997.customer_id = customer.customer_id)
group by grouping sets
    ((time_by_day.the_year, customer.gender))

org.pentaho.mondrian.tck.GroupingSetTest.testMultipleEntries

Grouping set queries are not supported.

Code Block
select
    time_by_day.the_year as the_year, customer.gender as gender, sum(sales_fact_1997.store_cost) as sum_cost
from
    time_by_day, sales_fact_1997, customer
where
    (sales_fact_1997.time_id = time_by_day.time_id and time_by_day.the_year = 1997
    and sales_fact_1997.customer_id = customer.customer_id)
group by grouping sets
    ((time_by_day.the_year, customer.gender), (time_by_day.the_year),())