Shuiqiang Chen created FLINK-30817:
--------------------------------------
Summary: ClassCastException in
TestValuesTableFactory.TestValuesScanTableSourceWithoutProjectionPushDown
Key: FLINK-30817
URL: https://issues.apache.org/jira/browse/FLINK-30817
Project: Flink
Issue Type: Bug
Components: Table SQL / Planner
Affects Versions: 1.16.0, 1.17.0
Reporter: Shuiqiang Chen
When applying partitions in TestValuesScanTableSourceWithoutProjectionPushDown
with no partition provided, the following code will cause ClassCastException
{code:java}
remainingPartitions = (List<Map<String, String>>) Collections.emptyMap();
this.data.put(Collections.emptyMap(), Collections.emptyList());
{code}
{panel:title=My title}
java.lang.ClassCastException: java.util.Collections$EmptyMap cannot be cast to
java.util.List
at
org.apache.flink.table.planner.factories.TestValuesTableFactory$TestValuesScanTableSourceWithoutProjectionPushDown.applyPartitions(TestValuesTableFactory.java:1222)
at
org.apache.flink.table.planner.plan.abilities.source.PartitionPushDownSpec.apply(PartitionPushDownSpec.java:57)
at
org.apache.flink.table.planner.plan.rules.logical.PushPartitionIntoTableSourceScanRule.onMatch(PushPartitionIntoTableSourceScanRule.java:183)
at
org.apache.calcite.plan.AbstractRelOptPlanner.fireRule(AbstractRelOptPlanner.java:343)
{panel}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)