Skip to content

Commit

Permalink
release 1.1.7a1 with fix for _check_required_params
Browse files Browse the repository at this point in the history
  • Loading branch information
george1459 committed May 2, 2024
1 parent 0f6a6c2 commit d1c86a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Package metadata
name = "suql"
version = "1.1.7a0"
version = "1.1.7a1"
description = "Structured and Unstructured Query Language (SUQL) Python API"
author = "Shicheng Liu"
author_email = "[email protected]"
Expand Down
7 changes: 6 additions & 1 deletion src/suql/sql_free_text_support/execute_free_text_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -1730,7 +1730,12 @@ def _check_required_params(suql, required_params_mapping):
`missing_params` (Dict(str -> List[str]): a mapping from table names to a list of required missing parameters.
"""
root = parse_sql(suql)
# try except handles stand alone answer functions and other parsing exceptions
try:
root = parse_sql(suql)
except Exception:
return False, required_params_mapping

visitor = _RequiredParamMappingVisitor(required_params_mapping)
visitor(root)

Expand Down

0 comments on commit d1c86a0

Please sign in to comment.