Class PolarisSparkIntegrationTestBase

java.lang.Object
org.apache.polaris.service.it.ext.PolarisSparkIntegrationTestBase
Direct Known Subclasses:
PolarisSparkIntegrationTest

@ExtendWith(PolarisIntegrationTestExtension.class) public abstract class PolarisSparkIntegrationTestBase extends Object
  • Field Details

    • s3Container

      protected static final com.adobe.testing.s3mock.testcontainers.S3MockContainer s3Container
    • spark

      protected static org.apache.spark.sql.SparkSession spark
    • endpoints

      protected PolarisApiEndpoints endpoints
    • client

      protected PolarisClient client
    • managementApi

      protected ManagementApi managementApi
    • catalogApi

      protected CatalogApi catalogApi
    • sparkToken

      protected String sparkToken
    • catalogName

      protected String catalogName
    • externalCatalogName

      protected String externalCatalogName
    • warehouseDir

      protected URI warehouseDir
  • Constructor Details

    • PolarisSparkIntegrationTestBase

      public PolarisSparkIntegrationTestBase()
  • Method Details

    • setup

      @BeforeAll public static void setup() throws IOException
      Throws:
      IOException
    • cleanup

      @AfterAll public static void cleanup()
    • before

      @BeforeEach public void before(PolarisApiEndpoints apiEndpoints, ClientCredentials credentials, @TempDir Path tempDir)
    • withCatalog

      protected org.apache.spark.sql.SparkSession.Builder withCatalog(org.apache.spark.sql.SparkSession.Builder builder, String catalogName)
    • after

      @AfterEach public void after() throws Exception
      Throws:
      Exception
    • cleanupCatalog

      protected void cleanupCatalog(String catalogName)
    • onSpark

      protected static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> onSpark(String sql)