@@ -0,0 +1,1895 @@
+/*%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage io.trino.plugin.hive;%0A%0Aimport com.google.common.collect.ImmutableMap;%0Aimport io.trino.testing.BaseDynamicPartitionPruningTest;%0Aimport io.trino.testing.QueryRunner;%0Aimport org.intellij.lang.annotations.Language;%0A%0Aimport java.util.List;%0A%0Aimport static java.lang.String.format;%0Aimport static java.util.stream.Collectors.joining;%0A%0Apublic class TestHiveDynamicPartitionPruningTest%0A        extends BaseDynamicPartitionPruningTest%0A%7B%0A    @Override%0A    protected QueryRunner createQueryRunner()%0A            throws Exception%0A    %7B%0A        return HiveQueryRunner.builder()%0A                .setExtraProperties(EXTRA_PROPERTIES)%0A                .setHiveProperties(ImmutableMap.of(%22hive.dynamic-filtering-probe-blocking-timeout%22, %221h%22))%0A                .setInitialTables(REQUIRED_TABLES)%0A                .build();%0A    %7D%0A%0A    @Override%0A    protected void createLineitemTable(String tableName, List%3CString%3E columns, List%3CString%3E partitionColumns)%0A    %7B%0A        @Language(%22SQL%22) String sql = format(%0A                %22CREATE TABLE %25s WITH (format = 'TEXTFILE', partitioned_by=array%5B%25s%5D) AS SELECT %25s FROM tpch.tiny.lineitem%22,%0A                tableName,%0A                partitionColumns.stream().map(column -%3E %22'%22 + column + %22'%22).collect(joining(%22,%22)),%0A                String.join(%22,%22, columns));%0A        getQueryRunner().execute(sql);%0A    %7D%0A%7D%0A

Add back test for Hive dynamic filtering of partition