Skip to content

Conversation

@nmahadevuni
Copy link
Member

No description provided.

@nmahadevuni
Copy link
Member Author

@yingsu00 , please review

@prestodb-ci prestodb-ci force-pushed the main branch 11 times, most recently from d7e591c to a0a0464 Compare October 5, 2025 03:22
liujiayi771 and others added 14 commits October 6, 2025 02:21
fix decimal avg function precision issue

Signed-off-by: Yuan <[email protected]>

Alchemy-item: (ID = 518) [6020 ] Spark sql avg agg function support decimal commit 1/1 - 0cd1be1
And reverts facebookincubator#14934

Alchemy-item: (ID = 679) [oap   ] Register merge extract companion agg functions without suffix commit 1/1 - 830028e
Address comments

disable by default

Alchemy-item: (ID = 532) feat: Build hash table while adding input rows for left semi and anti join commit 1/1 - 73ee99f
Signed-off-by: Yuan <[email protected]>

Alchemy-item: (ID = 476) [11067] Support scan filter for decimal in ORC commit 1/1 - b432008
The function toValues removes duplicated values from the vector and
return them in a std::vector. It was used to build an InPredicate. It
will be needed for building NOT IN filters for Iceberg equality delete
read as well, therefore moving it from velox/functions/prestosql/InPred
icate.cpp to velox/type/Filter.h. This commit also renames it to
deDuplicateValues to make it easier to understand.

Alchemy-item: (ID = 675) Iceberg staging hub commit 1/12 - 44c99a6
This commit introduces EqualityDeleteFileReader, which is used to read
Iceberg splits with equality delete files. The equality delete files
are read to construct domain filters or filter functions, which then
would be evaluated in the base file readers.

When there is only one equality delete field, and when that field is
an Iceberg identifier field, i.e. non-floating point primitive types,
the values would be converted to a list as a NOT IN domain filter,
with the NULL treated separately. This domain filter would then be
pushed to the ColumnReaders to filter our unwanted rows before they
are read into Velox vectors. When the equality delete column is a
nested column, e.g. a sub-column in a struct, or the key in a map,
such column may not be in the base file ScanSpec. We need to add/remove
these subfields to/from the SchemaWithId and ScanSpec recursively if
they were not in the ScanSpec already. A test is also added for such
case.

If there are more than one equality delete field, or the field is not
an Iceberg identifier field, the values would be converted to a typed
expression in the conjunct of disconjunts form. This expression would
be evaluated as the remaining filter function after the rows are read
into the Velox vectors. Note that this only works for Presto now as
the "neq" function is not registered by Spark. See https://github.com/
facebookincubator/issues/12667

Note that this commit only supports integral types. VARCHAR and
VARBINARY need to be supported in future commits (see
facebookincubator#12664).

Co-authored-by: Naveen Kumar Mahadevuni <[email protected]>

Alchemy-item: (ID = 675) Iceberg staging hub commit 2/12 - 813d750
Alchemy-item: (ID = 675) Iceberg staging hub commit 3/12 - 662374d
Alchemy-item: (ID = 675) Iceberg staging hub commit 4/12 - 1b67eb8
Co-authored-by: Chengcheng Jin <[email protected]>

Alchemy-item: (ID = 675) Iceberg staging hub commit 5/12 - 0acd427
Alchemy-item: (ID = 675) Iceberg staging hub commit 6/12 - b1b6bf9
Alchemy-item: (ID = 675) Iceberg staging hub commit 7/12 - b65a48f
…finity.

Alchemy-item: (ID = 675) Iceberg staging hub commit 8/12 - 4b89b2e
Alchemy-item: (ID = 675) Iceberg staging hub commit 9/12 - 87541a9
Alchemy-item: (ID = 675) Iceberg staging hub commit 10/12 - 39e063c
@prestodb-ci prestodb-ci force-pushed the main branch 24 times, most recently from 68b6404 to 95ef9a7 Compare October 23, 2025 04:36
@prestodb-ci prestodb-ci force-pushed the main branch 6 times, most recently from f99ebaf to bb12fb4 Compare October 25, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants