Class TpchTest


  • public class TpchTest
    extends java.lang.Object
    Unit test for TpchSchema.

    Because the TPC-H data generator takes time and memory to instantiate, tests that read data (that is, most tests) only run if CalciteSystemProperty.TEST_SLOW is set.

    • Field Detail

      • ENABLE

        public static final boolean ENABLE
      • TPCH_MODEL

        public static final java.lang.String TPCH_MODEL
      • QUERIES

        static final java.util.List<java.lang.String> QUERIES
    • Constructor Detail

      • TpchTest

        public TpchTest()
    • Method Detail

      • schema

        private static java.lang.String schema​(java.lang.String name,
                                               java.lang.String scaleFactor)
      • testRegion

        public void testRegion()
      • testLineItem

        public void testLineItem()
      • testOrders

        public void testOrders()
      • testCustomer

        public void testCustomer()
      • testCustomer5

        public void testCustomer5()
        Tests the customer table with scale factor 5.
      • testQuery01

        public void testQuery01()
      • testQuery02

        public void testQuery02()
      • testQuery02Conversion

        public void testQuery02Conversion()
      • testQuery03

        public void testQuery03()
      • testQuery04

        public void testQuery04()
      • testQuery05

        public void testQuery05()
      • testQuery06

        public void testQuery06()
      • testQuery07

        public void testQuery07()
      • testQuery08

        public void testQuery08()
      • testQuery09

        public void testQuery09()
      • testQuery10

        public void testQuery10()
      • testQuery11

        public void testQuery11()
      • testQuery12

        public void testQuery12()
      • testQuery13

        public void testQuery13()
      • testQuery14

        public void testQuery14()
      • testQuery15

        public void testQuery15()
      • testQuery16

        public void testQuery16()
      • testQuery17

        public void testQuery17()
      • testQuery18

        public void testQuery18()
      • testQuery19

        public void testQuery19()
      • testQuery20

        public void testQuery20()
      • testQuery21

        public void testQuery21()
      • testQuery22

        public void testQuery22()
      • checkQuery

        private void checkQuery​(int i)
      • query

        private CalciteAssert.AssertQuery query​(int i,
                                                java.lang.Boolean enable)
        Runs with query #i.
        Parameters:
        i - Ordinal of query, per the benchmark, 1-based
        enable - Whether to enable query execution. If null, use the value of ENABLE. Pass true only for 'fast' tests that do not read any data.