diff --git a/querybook/server/lib/query_analysis/validation/base_query_validator.py b/querybook/server/lib/query_analysis/validation/base_query_validator.py index c13795723..cdbbe1490 100644 --- a/querybook/server/lib/query_analysis/validation/base_query_validator.py +++ b/querybook/server/lib/query_analysis/validation/base_query_validator.py @@ -15,11 +15,12 @@ class QueryValidationResultObjectType(Enum): class QueryValidationSeverity(Enum): ERROR = "error" WARNING = "warning" + INFO = "info" class QueryValidationResult(object): def __init__( - self, + self, line: int, # 0 based ch: int, # location of the starting token severity: QueryValidationSeverity, diff --git a/querybook/server/lib/query_analysis/validation/validators/presto_explain_validator.py b/querybook/server/lib/query_analysis/validation/validators/presto_explain_validator.py index 9ad117ca5..3a0736b9f 100644 --- a/querybook/server/lib/query_analysis/validation/validators/presto_explain_validator.py +++ b/querybook/server/lib/query_analysis/validation/validators/presto_explain_validator.py @@ -4,7 +4,6 @@ BaseQueryValidator, QueryValidationResult, QueryValidationSeverity, - QueryValidationResultObjectType, ) from lib.utils.execute_query import ExecuteQuery from lib.query_executor.executors.presto import get_presto_error_dict @@ -56,7 +55,6 @@ def _map_statement_error_to_query( ) return QueryValidationResult( - QueryValidationResultObjectType.LINT, statement_error_line, statement_error_ch, QueryValidationSeverity.ERROR,