Skip to content

Implement the AnalyzeForeignTable Callback #131

@theory

Description

@theory

Currently, our implementation of the AnalyzeForeignTable callback, clickhouseAnalyzeForeignTable(), assigns a no-op function. Borrow from the postgres_fdw implementation to fetch a table size from system.tables or system.parts (maybe like this?), and to assign an estimation function that uses SELECT SAMPLE to generate stats. Determine whether this might impose too much storage overhead for stats on hyper large ClickHouse tables, or document how to keep them within reason (and perhaps auto-select the sample size in IMPORT SCHEMA?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestplannerImprovements to the planner and cost estimation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions