Skip to content

Change output ordering display of sources #8297

@mustafasrepo

Description

@mustafasrepo

Is your feature request related to a problem or challenge?

Current source executors(CsvExec, etc.) contains outpout_ordering inside display. For the following table

CREATE EXTERNAL TABLE multiple_ordered_table (
  a0 INTEGER,
  a INTEGER,
  b INTEGER,
  c INTEGER,
  d INTEGER
)
STORED AS CSV
WITH HEADER ROW
WITH ORDER (a ASC, b ASC)
WITH ORDER (c ASC)
LOCATION '../core/tests/data/window_2.csv';

display would be

----CsvExec: file_groups={1 group: [[path]]}, projection=[a, b], output_ordering=[a@0 ASC NULLS LAST, b@1 ASC NULLS LAST], has_header=true

It would be nice, if output ordering would contain all of the valid orderings at the source such as following

----CsvExec: file_groups={1 group: [[path]]}, projection=[a, b], output_orderings=[[a@0 ASC NULLS LAST, b@1 ASC NULLS LAST], [c@2 ASC NULLS LAST]], has_header=true

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions