Skip to content

Conversation

@aalkin
Copy link
Member

@aalkin aalkin commented Apr 3, 2025

Introducing configurable expression columns.

  • A special expression column defined with DECLARE_SOA_CONFIGURABLE_EXPRESSION_COLUMN(Name, getter, type, "label")

  • A special extended table defined with DECLARE_SOA_CONFIGURABLE_EXTENDED_TABLE(Name, BaseTable, "DESC", ext::column2, ext::column2, ...) that can only contain configurable expression columns

  • Defines<Name> d; template that can be added to an analysis task, indicating that it will define and produce this special extended table

  • The actual expressions can be set inside init() function of the analysis task, using d.projectors array using the same order of columns as in the table declaration

  • The expressions can use configurables from the task, as they are already set before init() is called
    The aim is to be able to set the expressions from external sources, i.e. CCDB, task configuration JSON, etc.

  • Improved Gandiva projector caching behavior for Spawns and Defines

  • Added a test for the new functionality

The corresponding example in O2Physics will be updated after this is merged.

@aalkin aalkin requested a review from a team as a code owner April 3, 2025 12:20
@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2025

REQUEST FOR PRODUCTION RELEASES:
To request your PR to be included in production software, please add the corresponding labels called "async-" to your PR. Add the labels directly (if you have the permissions) or add a comment of the form (note that labels are separated by a ",")

+async-label <label1>, <label2>, !<label3> ...

This will add <label1> and <label2> and removes <label3>.

The following labels are available
async-2023-pbpb-apass4
async-2023-pp-apass4
async-2024-pp-apass1
async-2022-pp-apass7
async-2024-pp-cpass0
async-2024-PbPb-apass1
async-2024-ppRef-apass1
async-2024-PbPb-apass2
async-2023-PbPb-apass5

@aalkin aalkin requested a review from ktf April 4, 2025 16:30
@ktf
Copy link
Member

ktf commented Apr 7, 2025

Very nice. I am testing on hyperloop and I will merge this.

@ktf ktf merged commit 8e4ed02 into AliceO2Group:dev Apr 7, 2025
11 checks passed
@aalkin aalkin deleted the configurable-expression-columns branch December 11, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants