[hotfix][table-planner] HiveCatalog store filesystem connector partit…#28516
Open
yangxiao0320 wants to merge 1 commit into
Open
[hotfix][table-planner] HiveCatalog store filesystem connector partit…#28516yangxiao0320 wants to merge 1 commit into
yangxiao0320 wants to merge 1 commit into
Conversation
…ioned tables, FlinkRecomputeStatistics cannot recognize the partition in batch mode
Collaborator
Contributor
|
A few points before the review:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ioned tables, FlinkRecomputeStatistics cannot recognize the partition in batch mode
What is the purpose of the change
HiveCatalog store filesystem connector partitioned tables, FlinkRecomputeStatistics cannot recognize the partition in batch mode
write data
CREATE CATALOG MyCatalog
WITH (
'type' = 'hive',
'hive-conf-dir' = '/opt/client/Hive/config',
'hive-version' = '3.1.0'
);
USE CATALOG MyCatalog;
create table test_filesystem(
uuid varchar(20),
name varchar(10),
dt varchar(20)
)
PARTITIONED BY (dt)
with (
'connector' = 'filesystem',
'path' = 'hdfs://hacluster/tmp/test_filesystem',
'format'= 'parquet'
);
CREATE TABLE datagen (
uuid varchar(20),
name varchar(10),
dt varchar(20))
WITH (
'connector' = 'datagen',
'number-of-rows' = '10');
insert into test_filesystem select * from datagen;
read data
set execution.runtime-mode=batch;
select * from test_filesystem;
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.table.catalog.exceptions.TableNotPartitionedException: Table default.test_filesystem in catalog MyCatalog is not partitioned.
Brief change log
When FlinkRecomputeStatistics cannot obtain the partition, the statistics information is set to UNKNOWN.
Verifying this change
Please make sure both new and modified tests in this PR follow the conventions for tests defined in our code quality guide.
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
@Public(Evolving): (yes / no)Documentation
Was generative AI tooling used to co-author this PR?