Open jthompson6 opened 7 years ago
This readExpressionMap should have keysMustBeSymbols = false. See the definition here:
Not checking for valid symbols would be okay because if they're not actual field names, it will fail later in compilation.
Titus is missing this feature altogether:
https://github.com/opendatagroup/hadrian/blob/master/titus/titus/reader.py#L507
I don't know if that's a different problem.
For instance, the YAML
fails with the message
"0" is not a valid symbol name
. The same YAML with "a" as the map key works.In Titus, both
PFAEngine.fromJson('''{"input":"double","output":{"values":"double","type":"map"},"method":"map","action":{"new":{"0":"input"}, "type":{"values":"double","type":"map"}}}''')
andPFAEngine.fromJson('''{"input":"double","output":{"values":"double","type":"map"},"method":"map","action":{"new":{"a":"input"}, "type":{"values":"double","type":"map"}}}''')
work.