Skip to content

Conversation

@51-code
Copy link
Contributor

@51-code 51-code commented Feb 12, 2025

Fixes #92 .

Moved renaming columns in aggregations and evaluations under new grammar rules together with the column that is going to be renamed. This makes it possible to traverse the parse tree in any order in PTH-10 without losing information about which renaming instruction corresponds to which column. Previously the rename instruction had to be parsed directly after the corresponding column, which makes parsing unnecessarily difficult.

Created tests to assert the parse tree is correct in these cases.

The grammar should not have changed at all in this PR! Only the grammar rules change, which creates a need for changes in PTH-10 when traversing the parse tree. DPL language stays the same though.

Evaluation functions had no tests yet in timechart. New issue #93 was opened about those, as a bug was found when testing them. The test introduced in this PR makes sure that the renaming of eval functions works as intended.

@51-code 51-code added the feature Existing feature label Feb 12, 2025
@51-code 51-code self-assigned this Feb 12, 2025
@51-code 51-code requested a review from eemhu February 12, 2025 09:30
@51-code 51-code requested review from eemhu and removed request for eemhu February 18, 2025 06:23
@51-code 51-code requested a review from eemhu February 18, 2025 08:31
@51-code
Copy link
Contributor Author

51-code commented Feb 26, 2025

Merge with caution. Using this in PTH-10 will break timechart, so refactoring has to be done there after merging.

@kortemik
Copy link
Member

@eemhu please coordinate this work or close pr if it is no longer necessary.

@kortemik kortemik requested review from eemhu and removed request for kortemik December 15, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Existing feature review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Timechart aggregations and column renames under one rule

3 participants