You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "huaxingao (via GitHub)" <gi...@apache.org> on 2026/10/06 00:48:32 UTC

[PR] Spec: Add a version to function references [iceberg]

huaxingao opened a new pull request, #18390:
URL: https://github.com/apache/iceberg/pull/18390

   A function reference in the expressions spec names a function but cannot name a version of its definition. A UDF definition can get a new version without any change to an expression that calls it.
   
   This matters for v4 check constraints (#17822): a check expression that calls a UDF cannot say which definition version it was validated against, and `deterministic` belongs to each definition version, so a later version can set it to false after the constraint exists.
   
   This adds optional `definition-id` and `version-id` fields to the object form of a function reference. When present, the named version must be used; otherwise the definition's current version is used. Evaluation fails if the named version is not present in the function's metadata.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add a version to function references [iceberg]

Posted by "huaxingao (via GitHub)" <gi...@apache.org>.
huaxingao closed pull request #18390: Spec: Add a version to function references
URL: https://github.com/apache/iceberg/pull/18390


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Spec: Add a version to function references [iceberg]

Posted by "huaxingao (via GitHub)" <gi...@apache.org>.
huaxingao commented on PR #18390:
URL: https://github.com/apache/iceberg/pull/18390#issuecomment-6007372489

   Closing this. After discussing with @flyrain , a check constraint will always use the current version of a UDF, the same way a view always reads the current table, so function references do not need a version. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org