From 423a920d6826ef18882deee05f29e4f5d2a4dea1 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Fri, 10 Mar 2023 12:28:27 +0100 Subject: [PATCH] Remove bogus overload in tests The `rubixEnabledConfig` was ignored. --- .../src/test/java/io/trino/plugin/hive/HiveTestUtils.java | 6 ------ .../java/io/trino/plugin/hive/rubix/TestRubixCaching.java | 1 - 2 files changed, 7 deletions(-) diff --git a/plugin/trino-hive/src/test/java/io/trino/plugin/hive/HiveTestUtils.java b/plugin/trino-hive/src/test/java/io/trino/plugin/hive/HiveTestUtils.java index c7d2aaf43c04..d69f9979f682 100644 --- a/plugin/trino-hive/src/test/java/io/trino/plugin/hive/HiveTestUtils.java +++ b/plugin/trino-hive/src/test/java/io/trino/plugin/hive/HiveTestUtils.java @@ -49,7 +49,6 @@ import io.trino.plugin.hive.parquet.ParquetReaderConfig; import io.trino.plugin.hive.parquet.ParquetWriterConfig; import io.trino.plugin.hive.rcfile.RcFilePageSourceFactory; -import io.trino.plugin.hive.rubix.RubixEnabledConfig; import io.trino.plugin.hive.s3.HiveS3Config; import io.trino.plugin.hive.s3.TrinoS3ConfigurationInitializer; import io.trino.plugin.hive.s3select.S3SelectRecordCursorProvider; @@ -160,11 +159,6 @@ public static HiveSessionProperties getHiveSessionProperties(HiveConfig hiveConf } public static HiveSessionProperties getHiveSessionProperties(HiveConfig hiveConfig, OrcReaderConfig orcReaderConfig) - { - return getHiveSessionProperties(hiveConfig, new RubixEnabledConfig(), orcReaderConfig); - } - - public static HiveSessionProperties getHiveSessionProperties(HiveConfig hiveConfig, RubixEnabledConfig rubixEnabledConfig, OrcReaderConfig orcReaderConfig) { return new HiveSessionProperties( hiveConfig, diff --git a/plugin/trino-hive/src/test/java/io/trino/plugin/hive/rubix/TestRubixCaching.java b/plugin/trino-hive/src/test/java/io/trino/plugin/hive/rubix/TestRubixCaching.java index 4c88d3139519..3c07ff9f03b5 100644 --- a/plugin/trino-hive/src/test/java/io/trino/plugin/hive/rubix/TestRubixCaching.java +++ b/plugin/trino-hive/src/test/java/io/trino/plugin/hive/rubix/TestRubixCaching.java @@ -122,7 +122,6 @@ public void setup() config = new HdfsConfig(); List> hiveSessionProperties = getHiveSessionProperties( new HiveConfig(), - new RubixEnabledConfig().setCacheEnabled(true), new OrcReaderConfig()).getSessionProperties(); context = new HdfsContext( TestingConnectorSession.builder()