Open bryantrobbins opened 7 years ago
Checking the column definition expressions is the hardest part of this. I'm using the pyparsing module (http://pyparsing.wikispaces.com/) to write a Python class with the necessary logic.
Check out https://github.com/bryantrobbins/baseball/blob/master/shared/btr3baseball/ExpressionValidator.py
The Configuration Validator (top-level) is Here: https://github.com/bryantrobbins/baseball/blob/master/shared/btr3baseball/ConfigValidator.py
TODO: Add a list here of possible exceptions thrown by the ConfigValidator for consumption by the UI and Worker
Before successfully writing to DynamoDB and placing a message on the queue, the SubmitJob API call should validate the parameters of the requested job.
Here is a sample JSON configuration object for a job:
Below is a list of required validations.
Dataset:
Output:
ColumnSelect and RowSum Transformation:
RowSelect Transformation:
ColumnDefine Transformation: