-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle nested types when parsing sort fields
Previously the `parseSortFields` was only collecting the field id from the top level columns don't considering nested fields of nested types, so in case a query with a `sorted_by` property use a nested field of a nested type trino would throw an expcetion that the column don't exists, because the field id of the nested column don't exists on `baseColumnFieldIds` set. This commit fix this issue by recursively collecting the field ids from table columns which the column type is a nested type. Fix: #19620
- Loading branch information
Showing
1 changed file
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters