| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>LatticeTest (Calcite 1.20.0 Test API)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="LatticeTest (Calcite 1.20.0 Test API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"i0":10,"i1":10,"i2":9,"i3":9,"i4":10,"i5":9,"i6":9,"i7":9,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| var pathtoroot = "../../../../"; |
| var useModuleDirectories = true; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/LatticeTest.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <main role="main"> |
| <div class="header"> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.apache.calcite.test</a></div> |
| <h2 title="Class LatticeTest" class="title">Class LatticeTest</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.calcite.test.LatticeTest</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <pre>public class <span class="typeNameLabel">LatticeTest</span> |
| extends java.lang.Object</pre> |
| <div class="block">Unit test for lattices.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Field</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private static java.lang.String</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#AUTO_LATTICE">AUTO_LATTICE</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private static java.lang.String</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#INVENTORY_LATTICE">INVENTORY_LATTICE</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private static java.lang.String</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#SALES_LATTICE">SALES_LATTICE</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Constructor</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">LatticeTest</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>private void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#check(int)">check</a></span>​(int n)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>private void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#checkTileAlgorithm(java.lang.String,java.lang.String)">checkTileAlgorithm</a></span>​(java.lang.String statisticProvider, |
| java.lang.String expectedExplain)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>private static <a href="CalciteAssert.AssertThat.html" title="class in org.apache.calcite.test">CalciteAssert.AssertThat</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#foodmartLatticeModel(java.lang.String)">foodmartLatticeModel</a></span>​(java.lang.String statisticProvider)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>private static <a href="CalciteAssert.AssertThat.html" title="class in org.apache.calcite.test">CalciteAssert.AssertThat</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#foodmartModel(java.lang.String...)">foodmartModel</a></span>​(java.lang.String... extras)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>private <a href="CalciteAssert.AssertThat.html" title="class in org.apache.calcite.test">CalciteAssert.AssertThat</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#foodmartModelWithOneTile()">foodmartModelWithOneTile</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>private static <a href="CalciteAssert.AssertThat.html" title="class in org.apache.calcite.test">CalciteAssert.AssertThat</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#modelWithLattice(java.lang.String,java.lang.String,java.lang.String...)">modelWithLattice</a></span>​(java.lang.String name, |
| java.lang.String sql, |
| java.lang.String... extras)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>private static <a href="CalciteAssert.AssertThat.html" title="class in org.apache.calcite.test">CalciteAssert.AssertThat</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#modelWithLattices(java.lang.String...)">modelWithLattices</a></span>​(java.lang.String... lattices)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>private static void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#runJdbc()">runJdbc</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testAllFoodmartQueries()">testAllFoodmartQueries</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Runs all queries against the Foodmart schema, using a lattice.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testColumnCount()">testColumnCount</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Unit test for <code>Lattice.getRowCount(double, List)</code>.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testDimensionIsInvalidColumn()">testDimensionIsInvalidColumn</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testDistinctCount()">testDistinctCount</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests a distinct-count query.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testDistinctCount2()">testDistinctCount2</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testGroupByEmpty()">testGroupByEmpty</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests a query that uses no columns from the fact table.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testGroupByEmpty2()">testGroupByEmpty2</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests a query that uses no dimension columns and one measure column.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testGroupByEmpty3()">testGroupByEmpty3</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests that two queries of the same dimensionality that use different |
| measures can use the same materialization.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testGroupByEmptyWithPrelude()">testGroupByEmptyWithPrelude</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Calls <a href="#testDistinctCount()"><code>testDistinctCount()</code></a> followed by |
| <a href="#testGroupByEmpty()"><code>testGroupByEmpty()</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testJG()">testJG</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests a query that is created within <a href="#testTileAlgorithm()"><code>testTileAlgorithm()</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLattice()">testLattice</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests some of the properties of the <code>Lattice</code> data structure.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeInvalidSql()">testLatticeInvalidSql</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests a lattice with invalid SQL (for a lattice).</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeInvalidSql2()">testLatticeInvalidSql2</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Left join is invalid in a lattice.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeInvalidSql3()">testLatticeInvalidSql3</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Each lattice table must have a parent.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeInvalidSqlFails()">testLatticeInvalidSqlFails</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests a lattice whose SQL is invalid.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeRecognizeGroupJoin()">testLatticeRecognizeGroupJoin</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests an aggregate on a 2-way join query can use an aggregate table.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeRecognizeJoin()">testLatticeRecognizeJoin</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests that a 2-way join query can be mapped 4-way join lattice.</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeSql()">testLatticeSql</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests that it's OK for a lattice to have the same name as a table in the |
| schema.</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeSqlWithGroupByFails()">testLatticeSqlWithGroupByFails</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests a lattice whose SQL is invalid because it contains a GROUP BY.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeSqlWithJoin()">testLatticeSqlWithJoin</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests a lattice with valid join SQL.</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeSqlWithOrderByFails()">testLatticeSqlWithOrderByFails</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests a lattice whose SQL is invalid because it contains a ORDER BY.</div> |
| </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeSqlWithUnionFails()">testLatticeSqlWithUnionFails</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests a lattice whose SQL is invalid because it contains a UNION ALL.</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeStarTable()">testLatticeStarTable</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">When a lattice is registered, there is a table with the same name.</div> |
| </td> |
| </tr> |
| <tr id="i31" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeWithBadRowCountEstimate()">testLatticeWithBadRowCountEstimate</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test case for |
| <a href="https://issues.apache.org/jira/browse/CALCITE-760">[CALCITE-760] |
| Aggregate recommender blows up if row count estimate is too high</a>.</div> |
| </td> |
| </tr> |
| <tr id="i32" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeWithNoMeasures()">testLatticeWithNoMeasures</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">A lattice with no default measure list should get "count(*)" is its |
| default measure.</div> |
| </td> |
| </tr> |
| <tr id="i33" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeWithPreDefinedTiles()">testLatticeWithPreDefinedTiles</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests a model with pre-defined tiles.</div> |
| </td> |
| </tr> |
| <tr id="i34" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeWithPreDefinedTilesFewerMeasures()">testLatticeWithPreDefinedTilesFewerMeasures</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">A query that uses a pre-defined aggregate table, at the same |
| granularity but fewer calls to aggregate functions.</div> |
| </td> |
| </tr> |
| <tr id="i35" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeWithPreDefinedTilesRollUp()">testLatticeWithPreDefinedTilesRollUp</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests a query that uses a pre-defined aggregate table at a lower |
| granularity.</div> |
| </td> |
| </tr> |
| <tr id="i36" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testLatticeWithSameNameAsTable()">testLatticeWithSameNameAsTable</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests that it's OK for a lattice to have the same name as a table in the |
| schema.</div> |
| </td> |
| </tr> |
| <tr id="i37" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testMeasureAggIsInvalid()">testMeasureAggIsInvalid</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i38" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testMeasureArgIsInvalidColumn()">testMeasureArgIsInvalidColumn</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i39" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testMeasureArgIsNotUniqueAlias()">testMeasureArgIsNotUniqueAlias</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">It is an error for "customer_id" to be a measure arg, because is not a |
| unique alias.</div> |
| </td> |
| </tr> |
| <tr id="i40" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testOneLatticeOneMV()">testOneLatticeOneMV</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Test case for |
| <a href="https://issues.apache.org/jira/browse/CALCITE-787">[CALCITE-787] |
| Star table wrongly assigned to materialized view</a>.</div> |
| </td> |
| </tr> |
| <tr id="i41" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testSuggester()">testSuggester</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i42" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testSum()">testSum</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Rolling up SUM.</div> |
| </td> |
| </tr> |
| <tr id="i43" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testTileAlgorithm()">testTileAlgorithm</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests a model that uses an algorithm to generate an initial set of |
| tiles.</div> |
| </td> |
| </tr> |
| <tr id="i44" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testTileAlgorithm2()">testTileAlgorithm2</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">As <a href="#testTileAlgorithm()"><code>testTileAlgorithm()</code></a>, but uses the |
| <code>Lattices.CACHED_SQL</code> statistics provider.</div> |
| </td> |
| </tr> |
| <tr id="i45" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testTileAlgorithm3()">testTileAlgorithm3</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">As <a href="#testTileAlgorithm()"><code>testTileAlgorithm()</code></a>, but uses the |
| <code>Lattices.PROFILER</code> statistics provider.</div> |
| </td> |
| </tr> |
| <tr id="i46" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testTileWithNoMeasures()">testTileWithNoMeasures</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">A tile with no measures should inherit default measure list from the |
| lattice.</div> |
| </td> |
| </tr> |
| <tr id="i47" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testTwoLattices()">testTwoLattices</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i48" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#testTwoLatticesWithSameNameFails()">testTwoLatticesWithSameNameFails</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Tests that it's an error to have two lattices with the same name in a |
| schema.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a id="SALES_LATTICE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SALES_LATTICE</h4> |
| <pre>private static final java.lang.String SALES_LATTICE</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../constant-values.html#org.apache.calcite.test.LatticeTest.SALES_LATTICE">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="INVENTORY_LATTICE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>INVENTORY_LATTICE</h4> |
| <pre>private static final java.lang.String INVENTORY_LATTICE</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../constant-values.html#org.apache.calcite.test.LatticeTest.INVENTORY_LATTICE">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="AUTO_LATTICE"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>AUTO_LATTICE</h4> |
| <pre>private static final java.lang.String AUTO_LATTICE</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../constant-values.html#org.apache.calcite.test.LatticeTest.AUTO_LATTICE">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a id="<init>()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>LatticeTest</h4> |
| <pre>public LatticeTest()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ============ METHOD DETAIL ========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a id="modelWithLattice(java.lang.String,java.lang.String,java.lang.String...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>modelWithLattice</h4> |
| <pre class="methodSignature">private static <a href="CalciteAssert.AssertThat.html" title="class in org.apache.calcite.test">CalciteAssert.AssertThat</a> modelWithLattice​(java.lang.String name, |
| java.lang.String sql, |
| java.lang.String... extras)</pre> |
| </li> |
| </ul> |
| <a id="modelWithLattices(java.lang.String...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>modelWithLattices</h4> |
| <pre class="methodSignature">private static <a href="CalciteAssert.AssertThat.html" title="class in org.apache.calcite.test">CalciteAssert.AssertThat</a> modelWithLattices​(java.lang.String... lattices)</pre> |
| </li> |
| </ul> |
| <a id="testLatticeSql()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeSql</h4> |
| <pre class="methodSignature">public void testLatticeSql() |
| throws java.lang.Exception</pre> |
| <div class="block">Tests that it's OK for a lattice to have the same name as a table in the |
| schema.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testLattice()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLattice</h4> |
| <pre class="methodSignature">public void testLattice() |
| throws java.lang.Exception</pre> |
| <div class="block">Tests some of the properties of the <code>Lattice</code> data structure.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testLatticeWithSameNameAsTable()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeWithSameNameAsTable</h4> |
| <pre class="methodSignature">public void testLatticeWithSameNameAsTable()</pre> |
| <div class="block">Tests that it's OK for a lattice to have the same name as a table in the |
| schema.</div> |
| </li> |
| </ul> |
| <a id="testTwoLatticesWithSameNameFails()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testTwoLatticesWithSameNameFails</h4> |
| <pre class="methodSignature">public void testTwoLatticesWithSameNameFails()</pre> |
| <div class="block">Tests that it's an error to have two lattices with the same name in a |
| schema.</div> |
| </li> |
| </ul> |
| <a id="testLatticeInvalidSqlFails()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeInvalidSqlFails</h4> |
| <pre class="methodSignature">public void testLatticeInvalidSqlFails()</pre> |
| <div class="block">Tests a lattice whose SQL is invalid.</div> |
| </li> |
| </ul> |
| <a id="testLatticeSqlWithGroupByFails()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeSqlWithGroupByFails</h4> |
| <pre class="methodSignature">public void testLatticeSqlWithGroupByFails()</pre> |
| <div class="block">Tests a lattice whose SQL is invalid because it contains a GROUP BY.</div> |
| </li> |
| </ul> |
| <a id="testLatticeSqlWithOrderByFails()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeSqlWithOrderByFails</h4> |
| <pre class="methodSignature">public void testLatticeSqlWithOrderByFails()</pre> |
| <div class="block">Tests a lattice whose SQL is invalid because it contains a ORDER BY.</div> |
| </li> |
| </ul> |
| <a id="testLatticeSqlWithUnionFails()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeSqlWithUnionFails</h4> |
| <pre class="methodSignature">public void testLatticeSqlWithUnionFails()</pre> |
| <div class="block">Tests a lattice whose SQL is invalid because it contains a UNION ALL.</div> |
| </li> |
| </ul> |
| <a id="testLatticeSqlWithJoin()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeSqlWithJoin</h4> |
| <pre class="methodSignature">public void testLatticeSqlWithJoin()</pre> |
| <div class="block">Tests a lattice with valid join SQL.</div> |
| </li> |
| </ul> |
| <a id="testLatticeInvalidSql()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeInvalidSql</h4> |
| <pre class="methodSignature">public void testLatticeInvalidSql()</pre> |
| <div class="block">Tests a lattice with invalid SQL (for a lattice).</div> |
| </li> |
| </ul> |
| <a id="testLatticeInvalidSql2()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeInvalidSql2</h4> |
| <pre class="methodSignature">public void testLatticeInvalidSql2()</pre> |
| <div class="block">Left join is invalid in a lattice.</div> |
| </li> |
| </ul> |
| <a id="testLatticeInvalidSql3()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeInvalidSql3</h4> |
| <pre class="methodSignature">public void testLatticeInvalidSql3()</pre> |
| <div class="block">Each lattice table must have a parent.</div> |
| </li> |
| </ul> |
| <a id="testLatticeStarTable()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeStarTable</h4> |
| <pre class="methodSignature">public void testLatticeStarTable()</pre> |
| <div class="block">When a lattice is registered, there is a table with the same name. |
| It can be used for explain, but not for queries.</div> |
| </li> |
| </ul> |
| <a id="testLatticeRecognizeJoin()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeRecognizeJoin</h4> |
| <pre class="methodSignature">public void testLatticeRecognizeJoin()</pre> |
| <div class="block">Tests that a 2-way join query can be mapped 4-way join lattice.</div> |
| </li> |
| </ul> |
| <a id="testLatticeRecognizeGroupJoin()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeRecognizeGroupJoin</h4> |
| <pre class="methodSignature">public void testLatticeRecognizeGroupJoin()</pre> |
| <div class="block">Tests an aggregate on a 2-way join query can use an aggregate table.</div> |
| </li> |
| </ul> |
| <a id="testLatticeWithPreDefinedTiles()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeWithPreDefinedTiles</h4> |
| <pre class="methodSignature">public void testLatticeWithPreDefinedTiles()</pre> |
| <div class="block">Tests a model with pre-defined tiles.</div> |
| </li> |
| </ul> |
| <a id="testLatticeWithPreDefinedTilesFewerMeasures()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeWithPreDefinedTilesFewerMeasures</h4> |
| <pre class="methodSignature">public void testLatticeWithPreDefinedTilesFewerMeasures()</pre> |
| <div class="block">A query that uses a pre-defined aggregate table, at the same |
| granularity but fewer calls to aggregate functions.</div> |
| </li> |
| </ul> |
| <a id="testLatticeWithPreDefinedTilesRollUp()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeWithPreDefinedTilesRollUp</h4> |
| <pre class="methodSignature">public void testLatticeWithPreDefinedTilesRollUp()</pre> |
| <div class="block">Tests a query that uses a pre-defined aggregate table at a lower |
| granularity. Includes a measure computed from a grouping column, a measure |
| based on COUNT rolled up using SUM, and an expression on a measure.</div> |
| </li> |
| </ul> |
| <a id="testTileAlgorithm()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testTileAlgorithm</h4> |
| <pre class="methodSignature">public void testTileAlgorithm()</pre> |
| <div class="block">Tests a model that uses an algorithm to generate an initial set of |
| tiles. |
| |
| <p>Test case for |
| <a href="https://issues.apache.org/jira/browse/CALCITE-428">[CALCITE-428] |
| Use optimization algorithm to suggest which tiles of a lattice to |
| materialize</a>.</div> |
| </li> |
| </ul> |
| <a id="testTileAlgorithm2()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testTileAlgorithm2</h4> |
| <pre class="methodSignature">public void testTileAlgorithm2()</pre> |
| <div class="block">As <a href="#testTileAlgorithm()"><code>testTileAlgorithm()</code></a>, but uses the |
| <code>Lattices.CACHED_SQL</code> statistics provider.</div> |
| </li> |
| </ul> |
| <a id="testTileAlgorithm3()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testTileAlgorithm3</h4> |
| <pre class="methodSignature">public void testTileAlgorithm3()</pre> |
| <div class="block">As <a href="#testTileAlgorithm()"><code>testTileAlgorithm()</code></a>, but uses the |
| <code>Lattices.PROFILER</code> statistics provider.</div> |
| </li> |
| </ul> |
| <a id="checkTileAlgorithm(java.lang.String,java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>checkTileAlgorithm</h4> |
| <pre class="methodSignature">private void checkTileAlgorithm​(java.lang.String statisticProvider, |
| java.lang.String expectedExplain)</pre> |
| </li> |
| </ul> |
| <a id="foodmartLatticeModel(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>foodmartLatticeModel</h4> |
| <pre class="methodSignature">private static <a href="CalciteAssert.AssertThat.html" title="class in org.apache.calcite.test">CalciteAssert.AssertThat</a> foodmartLatticeModel​(java.lang.String statisticProvider)</pre> |
| </li> |
| </ul> |
| <a id="testJG()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testJG</h4> |
| <pre class="methodSignature">public void testJG()</pre> |
| <div class="block">Tests a query that is created within <a href="#testTileAlgorithm()"><code>testTileAlgorithm()</code></a>.</div> |
| </li> |
| </ul> |
| <a id="testGroupByEmpty()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testGroupByEmpty</h4> |
| <pre class="methodSignature">public void testGroupByEmpty()</pre> |
| <div class="block">Tests a query that uses no columns from the fact table.</div> |
| </li> |
| </ul> |
| <a id="testGroupByEmptyWithPrelude()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testGroupByEmptyWithPrelude</h4> |
| <pre class="methodSignature">public void testGroupByEmptyWithPrelude()</pre> |
| <div class="block">Calls <a href="#testDistinctCount()"><code>testDistinctCount()</code></a> followed by |
| <a href="#testGroupByEmpty()"><code>testGroupByEmpty()</code></a>.</div> |
| </li> |
| </ul> |
| <a id="testGroupByEmpty2()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testGroupByEmpty2</h4> |
| <pre class="methodSignature">public void testGroupByEmpty2()</pre> |
| <div class="block">Tests a query that uses no dimension columns and one measure column.</div> |
| </li> |
| </ul> |
| <a id="testGroupByEmpty3()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testGroupByEmpty3</h4> |
| <pre class="methodSignature">public void testGroupByEmpty3()</pre> |
| <div class="block">Tests that two queries of the same dimensionality that use different |
| measures can use the same materialization.</div> |
| </li> |
| </ul> |
| <a id="testSum()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testSum</h4> |
| <pre class="methodSignature">public void testSum()</pre> |
| <div class="block">Rolling up SUM.</div> |
| </li> |
| </ul> |
| <a id="testDistinctCount()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testDistinctCount</h4> |
| <pre class="methodSignature">public void testDistinctCount()</pre> |
| <div class="block">Tests a distinct-count query. |
| |
| <p>We can't just roll up count(distinct ...) as we do count(...), but we |
| can still use the aggregate table if we're smart.</div> |
| </li> |
| </ul> |
| <a id="testDistinctCount2()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testDistinctCount2</h4> |
| <pre class="methodSignature">public void testDistinctCount2()</pre> |
| </li> |
| </ul> |
| <a id="testAllFoodmartQueries()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testAllFoodmartQueries</h4> |
| <pre class="methodSignature">public void testAllFoodmartQueries() |
| throws java.io.IOException</pre> |
| <div class="block">Runs all queries against the Foodmart schema, using a lattice. |
| |
| <p>Disabled for normal runs, because it is slow.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="check(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>check</h4> |
| <pre class="methodSignature">private void check​(int n) |
| throws java.io.IOException</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testTileWithNoMeasures()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testTileWithNoMeasures</h4> |
| <pre class="methodSignature">public void testTileWithNoMeasures()</pre> |
| <div class="block">A tile with no measures should inherit default measure list from the |
| lattice.</div> |
| </li> |
| </ul> |
| <a id="testLatticeWithNoMeasures()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeWithNoMeasures</h4> |
| <pre class="methodSignature">public void testLatticeWithNoMeasures()</pre> |
| <div class="block">A lattice with no default measure list should get "count(*)" is its |
| default measure.</div> |
| </li> |
| </ul> |
| <a id="testDimensionIsInvalidColumn()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testDimensionIsInvalidColumn</h4> |
| <pre class="methodSignature">public void testDimensionIsInvalidColumn()</pre> |
| </li> |
| </ul> |
| <a id="testMeasureArgIsInvalidColumn()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testMeasureArgIsInvalidColumn</h4> |
| <pre class="methodSignature">public void testMeasureArgIsInvalidColumn()</pre> |
| </li> |
| </ul> |
| <a id="testMeasureArgIsNotUniqueAlias()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testMeasureArgIsNotUniqueAlias</h4> |
| <pre class="methodSignature">public void testMeasureArgIsNotUniqueAlias()</pre> |
| <div class="block">It is an error for "customer_id" to be a measure arg, because is not a |
| unique alias. Both "c" and "t" have "customer_id".</div> |
| </li> |
| </ul> |
| <a id="testMeasureAggIsInvalid()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testMeasureAggIsInvalid</h4> |
| <pre class="methodSignature">public void testMeasureAggIsInvalid()</pre> |
| </li> |
| </ul> |
| <a id="testTwoLattices()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testTwoLattices</h4> |
| <pre class="methodSignature">public void testTwoLattices()</pre> |
| </li> |
| </ul> |
| <a id="testOneLatticeOneMV()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testOneLatticeOneMV</h4> |
| <pre class="methodSignature">public void testOneLatticeOneMV()</pre> |
| <div class="block">Test case for |
| <a href="https://issues.apache.org/jira/browse/CALCITE-787">[CALCITE-787] |
| Star table wrongly assigned to materialized view</a>.</div> |
| </li> |
| </ul> |
| <a id="testLatticeWithBadRowCountEstimate()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testLatticeWithBadRowCountEstimate</h4> |
| <pre class="methodSignature">public void testLatticeWithBadRowCountEstimate()</pre> |
| <div class="block">Test case for |
| <a href="https://issues.apache.org/jira/browse/CALCITE-760">[CALCITE-760] |
| Aggregate recommender blows up if row count estimate is too high</a>.</div> |
| </li> |
| </ul> |
| <a id="testSuggester()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>testSuggester</h4> |
| <pre class="methodSignature">public void testSuggester()</pre> |
| </li> |
| </ul> |
| <a id="foodmartModel(java.lang.String...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>foodmartModel</h4> |
| <pre class="methodSignature">private static <a href="CalciteAssert.AssertThat.html" title="class in org.apache.calcite.test">CalciteAssert.AssertThat</a> foodmartModel​(java.lang.String... extras)</pre> |
| </li> |
| </ul> |
| <a id="foodmartModelWithOneTile()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>foodmartModelWithOneTile</h4> |
| <pre class="methodSignature">private <a href="CalciteAssert.AssertThat.html" title="class in org.apache.calcite.test">CalciteAssert.AssertThat</a> foodmartModelWithOneTile()</pre> |
| </li> |
| </ul> |
| <a id="runJdbc()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>runJdbc</h4> |
| <pre class="methodSignature">private static void runJdbc() |
| throws java.sql.SQLException</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.sql.SQLException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="testColumnCount()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>testColumnCount</h4> |
| <pre class="methodSignature">public void testColumnCount()</pre> |
| <div class="block">Unit test for <code>Lattice.getRowCount(double, List)</code>.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| </div> |
| </main> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/LatticeTest.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 2012–2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </footer> |
| </body> |
| </html> |