Class ParsingColumnExpressionValidator

java.lang.Object
io.deephaven.server.table.validation.ParsingColumnExpressionValidator
All Implemented Interfaces:
ColumnExpressionValidator

public class ParsingColumnExpressionValidator extends Object implements ColumnExpressionValidator
Validates a column expression coming from gRPC, to ensure that the included code will use the customer defined list of allowed methods.

The formula is compiled as part of this validation, and the QueryLanguageParser produces a list of the methods that the formula would invoke if executed. The set of used methods is compared against our allowlist.

This validator is stricter than the MethodNameColumnExpressionValidator, which does not take the class instances into account.

The ExpressionValidatorModule.getParsingColumnExpressionValidatorFromConfiguration(Configuration) method is used to create a validator based on configuration properties.