Class BaseConnectorSmokeTest

java.lang.Object
io.trino.testing.AbstractTestQueryFramework
io.trino.testing.BaseConnectorSmokeTest

public abstract class BaseConnectorSmokeTest extends AbstractTestQueryFramework
A connector smoke test exercising various connector functionalities without going in depth on any of them. A connector should implement BaseConnectorTest and use this class to exercise some configuration variants.
  • Field Details

    • REQUIRED_TPCH_TABLES

      protected static final List<io.trino.tpch.TpchTable<?>> REQUIRED_TPCH_TABLES
  • Constructor Details

    • BaseConnectorSmokeTest

      public BaseConnectorSmokeTest()
  • Method Details

    • hasBehavior

      protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior)
      Make sure to group related behaviours together in the order and grouping they are declared in TestingConnectorBehavior.
    • createSchemaSql

      protected String createSchemaSql(String schemaName)
    • ensureDistributedQueryRunner

      public void ensureDistributedQueryRunner()
      Ensure the tests are run with DistributedQueryRunner. E.g. LocalQueryRunner takes some shortcuts, not exercising certain aspects.
    • ensureTestNamingConvention

      public void ensureTestNamingConvention()
      Overrides:
      ensureTestNamingConvention in class AbstractTestQueryFramework
    • testSelect

      public void testSelect()
    • testPredicate

      public void testPredicate()
    • testLimit

      public void testLimit()
    • testTopN

      public void testTopN()
    • testAggregation

      public void testAggregation()
    • testHaving

      public void testHaving()
    • testJoin

      public void testJoin()
    • testCreateTable

      public void testCreateTable()
    • getCreateTableDefaultDefinition

      protected String getCreateTableDefaultDefinition()
    • expectedValues

      protected String expectedValues(String values)
    • testCreateTableAsSelect

      public void testCreateTableAsSelect()
    • testInsert

      public void testInsert()
    • verifySupportsDeleteDeclaration

      public void verifySupportsDeleteDeclaration()
    • verifySupportsRowLevelDeleteDeclaration

      public void verifySupportsRowLevelDeleteDeclaration()
    • testDeleteAllDataFromTable

      public void testDeleteAllDataFromTable()
    • testRowLevelDelete

      public void testRowLevelDelete()
    • testTruncateTable

      public void testTruncateTable()
    • testUpdate

      public void testUpdate()
    • testMerge

      public void testMerge()
    • testCreateSchema

      public void testCreateSchema()
    • testCreateSchemaWithNonLowercaseOwnerName

      public void testCreateSchemaWithNonLowercaseOwnerName()
    • testRenameSchema

      public void testRenameSchema()
    • testRenameTable

      public void testRenameTable() throws Exception
      Throws:
      Exception
    • testRenameTableAcrossSchemas

      public void testRenameTableAcrossSchemas() throws Exception
      Throws:
      Exception
    • testShowInformationSchemaTables

      public void testShowInformationSchemaTables()
      This seemingly duplicate test of BaseConnectorTest.testShowInformationSchemaTables() is used in the context of this class in order to be able to test against a wider range of connector configurations.
    • testSelectInformationSchemaTables

      public void testSelectInformationSchemaTables()
    • testSelectInformationSchemaColumns

      public void testSelectInformationSchemaColumns()
    • testShowCreateTable

      public void testShowCreateTable()
    • testView

      public void testView()
    • testMaterializedView

      public void testMaterializedView()
    • testCommentView

      public void testCommentView()
    • testCommentViewColumn

      public void testCommentViewColumn()
    • testCommentMaterializedViewColumn

      public void testCommentMaterializedViewColumn()
    • getTableComment

      protected String getTableComment(String tableName)
    • getColumnComment

      protected String getColumnComment(String tableName, String columnName)