Skip to content

Import from ORC doesn't finish #19095

@glader

Description

@glader

I have an ORC file with 10 mln rows. I created a table with the same structure and executed insert into <table> select * from file('<filename>', ORC, '<fields>') . Rows were inserted, and select count(1) from <table> gave me 10 mln. But query didn't stop, and still is running. select query, written_rows from system.processes shows 700 mln inserted rows and counting.

CREATE TABLE t (a lot of ordinary fields) ENGINE = ReplicatedReplacingMergeTree('/clickhouse/tables/{shard}/t', '{replica}') PARTITION BY toYYYYMM(calday) ORDER BY (calday) SETTINGS index_granularity = 8192
clickhouse version 20.8.2.3.

Expected behavior
Query is finished.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed user-visible misbehaviour in official releasecomp-formatsInput/output formats (CSV/JSON/Parquet/ORC/Arrow/Protobuf/etc.).st-need-infoWe need extra data to continue (waiting for response). Either some details or a repro of the issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions