Skip to content

Commit

Permalink
Add TestHive4OnDataLake test
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankvadariya committed Dec 12, 2024
1 parent 2d1afb8 commit 44d2b01
Showing 1 changed file with 64 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.trino.plugin.hive;

import io.trino.plugin.hive.containers.Hive4MinioDataLake;
import io.trino.plugin.hive.containers.HiveMinioDataLake;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.parallel.Execution;
import org.junit.jupiter.api.parallel.ExecutionMode;

import static org.junit.jupiter.api.Assumptions.abort;
import static org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS;

@TestInstance(PER_CLASS)
@Execution(ExecutionMode.SAME_THREAD) // TODO Make custom hive4 image to support running queries concurrently
class TestHive4OnDataLake
extends BaseTestHiveOnDataLake
{
@Override
protected HiveMinioDataLake hiveMinioDataLake()
{
return new Hive4MinioDataLake(bucketName);
}

@Override
@Test
public void testSyncPartitionOnBucketRoot()
{
abort("https://github.com/trinodb/trino/issues/24453");
}

@Override
@Test
public void testUnpartitionedTableExternalLocationOnTopOfTheBucket()
{
abort("https://github.com/trinodb/trino/issues/24453");
}

@Override
@Test
public void testPartitionedTableExternalLocationOnTopOfTheBucket()
{
abort("https://github.com/trinodb/trino/issues/24453");
}

@Override
@Test
public void testInsertOverwritePartitionedAndBucketedAcidTable()
{
abort("https://github.com/trinodb/trino/issues/24454");
}
}

0 comments on commit 44d2b01

Please sign in to comment.