generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 178
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What is the bug?
Binning UDFs used by the bin command (e.g., span_bucket) are not resolved through PPLFuncImpTable.resolve(...). Instead, they’re instantiated via makeCall, which bypasses normal resolution. Because these functions are also missing from BuiltinFunctionName, resolution fails and throws an exception below.
Unsupported function: span_bucket
java.lang.IllegalArgumentException: Unsupported function: span_bucket
at org.opensearch.sql.expression.function.PPLFuncImpTable.resolve(PPLFuncImpTable.java:514)
How can one reproduce the bug?
Steps to reproduce the behavior:
- Call the
PPLFuncImpTable.resolveAPI with a binning UDF. - Observe
IllegalArgumentException: Unsupported functionexception.
What is the expected behavior?
- Binning UDFs are declared in
BuiltinFunctionName. - They are always constructed via
PPLFuncImpTable.resolve(...).
What is your host/environment?
- Version: OS
2.19-devand latestmain - Plugins: OpenSearch PPL
Do you have any additional context?
Implications
- Functionality
- Type checking is skipped for these functions.
- Schemaless operations and implicit casting are not applied.
- Integrations
- Bin command in Spark breaks because the UDF is not resolvable through the standard function table.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working