Class TpcTestUtils

java.lang.Object
io.trino.tests.product.TpcTestUtils

public final class TpcTestUtils extends Object
  • Method Details

    • createTpchDataset

      public static void createTpchDataset(String catalog)
    • createTpcdsDataset

      public static void createTpcdsDataset(String catalog)
    • createTpcdsAndTpchDatasets

      public static void createTpcdsAndTpchDatasets(String catalog)
    • tpchQueries

      public static Object[][] tpchQueries()
    • tpcdsQueries

      public static Object[][] tpcdsQueries()
    • assertResults

      public static void assertResults(List<String> expected, String query)
      We use hardcoded results from Trino tpch/tpcds suite stored as plain text. Some minor conversions are needed: Double values may different at last bits due to decimal conversion to text. Big decimal values may have trailing zeros and dots
    • trimIfNeeded

      public static String trimIfNeeded(String value)