Skip to content

Commit

Permalink
remove unnecessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
Vamsi committed Feb 13, 2025
1 parent 7fe1048 commit c778a19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 121 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.util.stream.Collectors;

import org.apache.hadoop.hive.metastore.api.Table;
import org.apache.xtable.hudi.catalog.HudiCatalogTableUtils;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
Expand All @@ -42,7 +43,6 @@

import org.apache.xtable.hms.HMSCatalogSyncTestBase;
import org.apache.xtable.hms.HMSSchemaExtractor;
import org.apache.xtable.hudi.HudiSparkDataSourceTableUtils;
import org.apache.xtable.hudi.HudiTableManager;

@ExtendWith(MockitoExtension.class)
Expand Down Expand Up @@ -77,16 +77,16 @@ void testGetCreateTableInput() {
setupCommonMocks();
setupMetaClientMocks();

try (MockedStatic<HudiSparkDataSourceTableUtils> mockHudiSparkDataSourceTableUtils =
mockStatic(HudiSparkDataSourceTableUtils.class)) {
try (MockedStatic<HudiCatalogTableUtils> mockHudiSparkDataSourceTableUtils =
mockStatic(HudiCatalogTableUtils.class)) {
List<String> partitionFields =
TEST_HUDI_INTERNAL_TABLE.getPartitioningFields().stream()
.map(partitionField -> partitionField.getSourceField().getName())
.collect(Collectors.toList());
mockHudiSparkDataSourceTableUtils
.when(
() ->
HudiSparkDataSourceTableUtils.getSparkTableProperties(
HudiCatalogTableUtils.getSparkTableProperties(
partitionFields,
"",
mockHMSCatalogConfig.getSchemaLengthThreshold(),
Expand All @@ -110,16 +110,16 @@ void testGetUpdateTableInput() {
setupCommonMocks();
setupMetaClientMocks();

try (MockedStatic<HudiSparkDataSourceTableUtils> mockHudiSparkDataSourceTableUtils =
mockStatic(HudiSparkDataSourceTableUtils.class)) {
try (MockedStatic<HudiCatalogTableUtils> mockHudiSparkDataSourceTableUtils =
mockStatic(HudiCatalogTableUtils.class)) {
List<String> partitionFields =
TEST_HUDI_INTERNAL_TABLE.getPartitioningFields().stream()
.map(partitionField -> partitionField.getSourceField().getName())
.collect(Collectors.toList());
mockHudiSparkDataSourceTableUtils
.when(
() ->
HudiSparkDataSourceTableUtils.getSparkTableProperties(
HudiCatalogTableUtils.getSparkTableProperties(
partitionFields,
"",
mockHMSCatalogConfig.getSchemaLengthThreshold(),
Expand Down

0 comments on commit c778a19

Please sign in to comment.