Skip to content

Set-returning function has context classloader set too many times #389

Description

@jcflack

The management of the Java thread context classloader added for issue #361 made clever arrangements to avoid duplicating the classloader assignment on the initial call of a set-returning function. But that was too clever by half, because every call comes through Function_invoke, which already assigns it, so the assignments are happening twice on every call but the first.

Other than inefficiency, the only likely noticeable effect would be in an application with multiple schema classloaders and nested calls, where it could be noticed that the wrong classloader is restored on set-returning-function exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions