Closed borisershov closed 7 months ago
The solution of this issue will be represented as an additional type command
of column value:
...
filters:
some_table_name:
columns:
some_column_name:
type: command
value: /path/to/command/or/script.sh
...
If the type: command
set for column, the value of the field value
considered as path to command that will be executed every time for this field. An additional environment variables will be available within the runtime of the specified command:
ENVVARTABLE={TABLE_NAME}
: contains a name of the filtered table
ENVVARCOLUMN_{COLUMN_NAME}={COLUMN_VALUE}
: contains all columns and its values (before substitutions) for the current filtered row
The stdout
of the command considered as new value for the filtered field.
As a result the command's concept has following properties:
stdout
will be used as a new value for the anonymized fieldstderr
will be used as an error text)ENVVARTABLE
: contains a name of the filtered tableENVVARCURCOLUMN
: contains the current column name ENVVARCOLUMN_{COLUMN_NAME}
: contains values (before substitutions) for all columns for the current rowClosed in Release v1.4.0
Add an ability to create a field values from external commands.