Skip to content

Commit

Permalink
addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
suryabhaskarkarri committed Feb 10, 2023
1 parent 164e365 commit 3c721f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -56,7 +55,6 @@ def _map_statement_error_to_query(
)

return QueryValidationResult(
QueryValidationResultObjectType.LINT,
statement_error_line,
statement_error_ch,
QueryValidationSeverity.ERROR,
Expand Down

0 comments on commit 3c721f6

Please sign in to comment.