From 1f83e05a4fdd8da2601be65befd0991a5737d2d1 Mon Sep 17 00:00:00 2001 From: gs-jp1 <80327721+gs-jp1@users.noreply.github.com> Date: Mon, 25 Sep 2023 10:38:55 +0100 Subject: [PATCH] Add date enums to pathToElement register (#2290) * Add date enums to pathToElement register * Add date enums to pathToElement register --- .../engine/language/pure/compiler/toPureGraph/PureModel.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/legend-engine-core/legend-engine-core-language-pure/legend-engine-language-pure-compiler/src/main/java/org/finos/legend/engine/language/pure/compiler/toPureGraph/PureModel.java b/legend-engine-core/legend-engine-core-language-pure/legend-engine-language-pure-compiler/src/main/java/org/finos/legend/engine/language/pure/compiler/toPureGraph/PureModel.java index 95e3b37fe0b..11fb6d99ab0 100644 --- a/legend-engine-core/legend-engine-core-language-pure/legend-engine-language-pure-compiler/src/main/java/org/finos/legend/engine/language/pure/compiler/toPureGraph/PureModel.java +++ b/legend-engine-core/legend-engine-core-language-pure/legend-engine-language-pure-compiler/src/main/java/org/finos/legend/engine/language/pure/compiler/toPureGraph/PureModel.java @@ -404,6 +404,11 @@ private void registerElementsForPathToElement() registerElementForPathToElement("meta::pure::tds", Lists.mutable.with( "TDSRow" )); + + registerElementForPathToElement("meta::pure::functions::date", Lists.mutable.with( + "DayOfWeek", "DurationUnit", "Month", "Quarter" + )); + this.extensions.getExtraElementForPathToElementRegisters().forEach(register -> register.value(this::registerElementForPathToElement)); }