Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix array_top_n not outputting null #24729

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jkhaliqi
Copy link
Contributor

Description

Motivation and Context

closes #24700

Impact

Test Plan

presto:tpch> SELECT try(array_top_n(c0, (- INTEGER '153792828'))) from (values array[1,23]) t(c0);
 _col0                
-------
 NULL  
(1 row)

Contributor checklist

  • Please make sure your submission complies with our contributing guide, in particular code style and 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.
  • Adequate tests were added if applicable.
  • CI passed.

Release Notes

Please follow release notes guidelines and fill in the release notes below.

== RELEASE NOTES ==

General Changes
* ... 
* ... 

Hive Connector Changes
* ... 
* ... 

If release note is NOT required, use:

== NO RELEASE NOTE ==

@jkhaliqi jkhaliqi requested a review from a team as a code owner March 14, 2025 01:23
@jkhaliqi jkhaliqi requested a review from jaystarshot March 14, 2025 01:23
@prestodb-ci prestodb-ci added the from:IBM PR from IBM label Mar 14, 2025
@prestodb-ci prestodb-ci requested review from a team, nishithakbhaskaran and NivinCS and removed request for a team March 14, 2025 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from:IBM PR from IBM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

array_top_n: Throws wrong error code and cannot be caught by try
2 participants