Skip to content

Commit

Permalink
Add TestHive4OnDataLake test
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankvadariya authored and ebyhr committed Dec 19, 2024
1 parent 72f4796 commit 6590bfc
Showing 1 changed file with 66 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* 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 org.junit.jupiter.api.Test;
import org.junit.jupiter.api.parallel.Execution;
import org.junit.jupiter.api.parallel.ExecutionMode;

import static io.trino.testing.TestingNames.randomNameSuffix;
import static org.junit.jupiter.api.Assumptions.abort;

@Execution(ExecutionMode.SAME_THREAD) // TODO Make custom hive4 image to support running queries concurrently
class TestHive4OnDataLake
extends BaseTestHiveOnDataLake
{
private static final String BUCKET_NAME = "test-hive-insert-overwrite-" + randomNameSuffix();

public TestHive4OnDataLake()
{
super(BUCKET_NAME, new Hive4MinioDataLake(BUCKET_NAME));
}

@Override
@Test
public void testSyncPartitionOnBucketRoot()
{
// https://github.com/trinodb/trino/issues/24453
abort("Fails with `location must not be root path`");
}

@Override
@Test
public void testUnpartitionedTableExternalLocationOnTopOfTheBucket()
{
// https://github.com/trinodb/trino/issues/24453
abort("Fails with `location must not be root path`");
}

@Override
@Test
public void testPartitionedTableExternalLocationOnTopOfTheBucket()
{
// https://github.com/trinodb/trino/issues/24453
abort("Fails with `location must not be root path`");
}

@Override
@Test
public void testInsertOverwritePartitionedAndBucketedAcidTable()
{
// https://github.com/trinodb/trino/issues/24454
abort("Fails with `Processor has no capabilities, cannot create an ACID table`");
}
}

0 comments on commit 6590bfc

Please sign in to comment.