We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
legend-pure/legend-pure-m3-core/src/main/java/org/finos/legend/pure/m3/compiler/validation/functionExpression/GetAllValidator.java
Line 73 in cbf7fce
Currently the method checks that the business date is a constant or a VariableExpression, expecting use cases of
MyClass.all(%2015-01-01)
or
let businessDate = today(); MyClass.all($businessDate );
However it gives compiler usage like
let businessDate = today(); MyClass.all($businessDate ) ->concatenate(MyClass.all($businessDate->adjust(-1, DurationUnit.DAYS));
due to the parameter being a FunctionExpression.
Although people can still create an equivalent query via:
let businessDate = today(); MyClass.all($businessDate ) ->concatenate({d:Date[1]|MyClass.all($d)}->eval($businessDate->adjust(-1, DurationUnit.DAYS));
and the compiler won't complain (but it's more complicated to write / less clear)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
legend-pure/legend-pure-m3-core/src/main/java/org/finos/legend/pure/m3/compiler/validation/functionExpression/GetAllValidator.java
Line 73 in cbf7fce
Currently the method checks that the business date is a constant or a VariableExpression, expecting use cases of
or
However it gives compiler usage like
due to the parameter being a FunctionExpression.
Although people can still create an equivalent query via:
and the compiler won't complain (but it's more complicated to write / less clear)
The text was updated successfully, but these errors were encountered: