Skip to content

Conversation

@leaves12138
Copy link
Contributor

Purpose

Linked issue: close #xxx

Tests

API and Format

Documentation

public static final Map<String, UnboundFunction> FUNCTIONS =
new HashMap<String, UnboundFunction>() {
{
put("path_to_descriptor", new PathToDescriptorUnbound());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why no descriptor to string?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@Override
public Identifier[] listFunctions(String[] namespace) throws NoSuchNamespaceException {
List<Identifier> result = new ArrayList<>();
BuiltInFunctions.FUNCTIONS.keySet().forEach(fn -> result.add(Identifier.of(namespace, fn)));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @Zouxxyy to take a look

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can refer to the sys.max_pt in PaimonFunctions, which is separate from user-defined functions.

@Zouxxyy
Copy link
Contributor

Zouxxyy commented Dec 26, 2025

You can add doc to spark/sql-functions/#built-in-function too

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.

3 participants