Skip to content

Fix Visit_Aggregation on ASTTemplate empty count handling #628

@mla2001

Description

@mla2001

Initial Checks

Summary

Currently, the Visit_Aggregation method on ASTTemplate fails with empty count handling, so inheritors would fail too.

Reproducible Example

script = "DS_r <- DS_1[aggr Me_1 := count()];"

    data_structures = {
        "datasets": [
            {
                "name": "DS_1",
                "DataStructure": [
                    {
                        "name": "Id_1",
                        "type": "Integer",
                        "role": "Identifier",
                        "nullable": False,
                    },
                ],
            }
        ]
    }

    ast = create_ast(script)
    ASTTemplate().visit(ast)

vtlengine version

1.6.1

Python version

Any

OS

Any

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions