Skip to content

[pull] master from prestodb:master - #984

Merged
pull[bot] merged 2 commits into
fishbone:masterfrom
prestodb:master
Sep 14, 2026
Merged

pull[bot] merged 2 commits into
fishbone:masterfrom
prestodb:master

Conversation

@pull

@pull pull Bot commented Sep 14, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Joe-Abraham and others added 2 commits September 14, 2026 10:13
## Description

The Iceberg SQL support table used the RST simple-table format, where
the `===` rules and every row's padding are pinned to the widest cell.
Converted it to `list-table`. The rendered page is unchanged.

## Motivation and Context

Adding one operation to that table means re-padding all 20 rows, so the
real change disappears into the diff. It has already drifted: `ALTER
TABLE ALTER COLUMN SET DEFAULT` fills the first column to its very last
character, and the four rows around it sit four spaces off. The next
operation someone documents would have to widen the rules again.

`list-table` also lets the Comments column wrap across lines, which the
simple format doesn't allow. The rest of this file already uses
`list-table` in three places, so this just brings the table in line with
its neighbours.

## Impact

Docs only. No rendered change, no user-facing behaviour change.

## Test Plan

Parsed the table before and after with docutils and compared the
resulting doctrees:

- both produce 21 rows and 4 columns, with no warnings
- cell text compares identical across every row

## Contributor checklist

- [ ] Please make sure your submission complies with our [contributing
guide](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md),
in particular [code
style](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#code-style)
and [commit
standards](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#commit-standards).
- [ ] PR description addresses the issue accurately and concisely. If
the change is non-trivial, a GitHub Issue is referenced.
- [ ] Documented new properties (with its default value), SQL syntax,
functions, or other functionality.
- [ ] If release notes are required, they follow the [release notes
guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines).
- [ ] Adequate tests were added if applicable.
- [ ] CI passed.
- [ ] If adding new dependencies, verified they have an [OpenSSF
Scorecard](https://securityscorecards.dev/#the-checks) score of 5.0 or
higher (or obtained explicit TSC approval for lower scores).

## Release Notes
```
== NO RELEASE NOTE ==
```

## Summary by Sourcery

Convert the Iceberg SQL support table to list-table format without
changing its rendered documentation.

Enhancements:
- Convert the Iceberg SQL support table to reStructuredText list-table
format while preserving its rendered content and structure.

Documentation:
- Improve the maintainability and readability of the Iceberg SQL support
table documentation.
…ame name (#28462)

## Description
This fixes the case where an Arrow record batch has duplicate column
names. The fix first checks if the connector output column layout
matches the columns in the Arrow record batch. If they match then the
Arrow vectors are retrieved by position, which allows for duplicate
column names. If they do not match, then the connector will lookup each
ouput column by name in the record batch. This requires the output
columns to be a subset of the record batch columns, with no duplicate
names. It can not support the case where there are both less output
columns and duplicate names.

## Motivation and Context
The Arrow connector has been used with TVFs where the output columns are
a subset of the columns in the Arrow record batches. The connector then
locates the column data by looking the Arrow vector by name. This lookup
fails when the record batch contains duplicate column names and returns
an error:

```
Exception: VeloxRuntimeError column with name 'duplicate_col' not found
```

## Impact
NA

## Test Plan
Added native unit tests for cases where there is a duplicate column
name, and additional columns in the batch that are not output columns.

## Contributor checklist

- [ ] Please make sure your submission complies with our [contributing
guide](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md),
in particular [code
style](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#code-style)
and [commit
standards](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#commit-standards).
- [ ] PR description addresses the issue accurately and concisely. If
the change is non-trivial, a GitHub Issue is referenced.
- [ ] Documented new properties (with its default value), SQL syntax,
functions, or other functionality.
- [ ] If release notes are required, they follow the [release notes
guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines).
- [ ] Adequate tests were added if applicable.
- [ ] CI passed.
- [ ] If adding new dependencies, verified they have an [OpenSSF
Scorecard](https://securityscorecards.dev/#the-checks) score of 5.0 or
higher (or obtained explicit TSC approval for lower scores).

## Release Notes
Please follow [release notes
guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines)
and fill in the release notes below.

```
== RELEASE NOTES ==

Prestissimo (Native Execution) Changes
* Fix Arrow connector column projection when there are duplicate column names.
```

## Summary by Sourcery

Fix Arrow Flight projection for duplicate column names and pruned output
columns.

Bug Fixes:
- Fix Arrow Flight column projection for record batches containing
duplicate column names.

Enhancements:
- Support selecting Arrow output columns by position when the batch
schema matches the requested layout, while retaining name-based
projection for pruned columns.
- Use consistent Arrow result error handling when opening streams,
reading schemas, and fetching record batches.

Tests:
- Add native connector coverage for duplicate column names and pruned
record-batch columns.
@pull pull Bot locked and limited conversation to collaborators Sep 14, 2026
@pull pull Bot added the ⤵️ pull label Sep 14, 2026
@pull
pull Bot merged commit fe30f51 into fishbone:master Sep 14, 2026
21 of 23 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants