You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Flink Jira Bot (Jira)" <ji...@apache.org> on 2022/04/10 10:39:00 UTC

[jira] [Updated] (FLINK-13611) Introduce analyze statistic utility to generate table & column statistics

     [ https://issues.apache.org/jira/browse/FLINK-13611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Flink Jira Bot updated FLINK-13611:
-----------------------------------
    Labels: auto-deprioritized-major pull-request-available stale-minor  (was: auto-deprioritized-major pull-request-available)

I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help the community manage its development. I see this issues has been marked as Minor but is unassigned and neither itself nor its Sub-Tasks have been updated for 180 days. I have gone ahead and marked it "stale-minor". If this ticket is still Minor, please either assign yourself or give an update. Afterwards, please remove the label or in 7 days the issue will be deprioritized.


> Introduce analyze statistic utility to generate table & column statistics
> -------------------------------------------------------------------------
>
>                 Key: FLINK-13611
>                 URL: https://issues.apache.org/jira/browse/FLINK-13611
>             Project: Flink
>          Issue Type: New Feature
>          Components: Table SQL / Planner
>            Reporter: godfrey he
>            Priority: Minor
>              Labels: auto-deprioritized-major, pull-request-available, stale-minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> this issue aims to introduce a utility class to generate table & column statistics, the main steps include: 
> 1. generate sql, like
> {code:sql}
> select approx_count_distinct(a) as ndv, count(1) - count(a) as nullCount, avg(char_length(a)) as avgLen, max(char_lenght(a)) as maxLen, max(a) as maxValue, min(a) as minValue, ... from MyTable
> {code}
> 2. execute the query
> 3. convert to the result to {{TableStats}} (maybe the source table is not a {{ConnectorCatalogTable}})
> 4. convert to {{TableStats}} to {{CatalogTableStatistics}} if needed
> This issue does not involve DDL(like {{ANALYZE TABLE XXX}}), however the DDL could use this utility class once it's supported.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)