Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
Handle null values in query parser
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Jan 19, 2024
1 parent 96dcc75 commit f8e96a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/query_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def get_filter_query_params(request: Request) -> list[tuple[str, str]]:

def cast_to_column_type(column: Column, value):
try:
if value == "null":
return None

return column.type.python_type(value)
except Exception:
raise ParserException(
Expand Down

0 comments on commit f8e96a2

Please sign in to comment.