-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
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
substring #327
Comments
@noahboerger could you confirm |
The first note on substr was just that it is currently not supported in the shape The different syntax also seems to be the correct one according to the reference manual (p. 76 f.). |
This syntax has to work, and is implemented in Trevas I think. @noahboerger, can you provide a failed example with the stack trace please? |
@NicoLaval you are right, with a dataset with only string measures it is working also on my side. The dataset i have tested it with had the wrong format
The concrete test case i have executed is the one from BdI "11. conditional/if-then-else_2", which is trying to execute it with a dataset that is also containing a measure with an additional double type. This testcase has failed with the following error: Occured errorException
The test from BdI assumes that the additional non string measure is kept without being manipulated. But I think your implementation is right, as the table of VTL-ML-Operators in the reference manual (p. 17), requires the input to be in the following form:
so i think it the correct behaviour to fail here. I did not dive so deep into this test case when i executed it the first time, but then it is a wrong test case. I am not sure if the trevas error message could be a bit more clear, as the engine still tries to execute the replace-operator even with a mismatching input dataset. |
@noahboerger you reported
substr
is not supported.I thought it was, for scalars, components and datasets.
Could you report a failed example please?
The text was updated successfully, but these errors were encountered: