Skip to content

Commit

Permalink
fix: Custom query validation throwing error with sql files ending wit…
Browse files Browse the repository at this point in the history
…h semicolon(;) (#591)

* fix: Custom query validation throwing error with sql files ending with semicolon(;)

* fix: Custom query validation throwing error with sql files ending with semicolon(;)

* fix: Custom query validation throwing error with sql files ending with semicolon(;)

* fix: Custom query validation throwing error with sql files ending with semicolon(;)

* fix: Custom query validation throwing error with sql files ending with semicolon(;)

* fix: Custom query validation throwing error with sql files ending with semicolon(;)p

Co-authored-by: Celia Ji <[email protected]>
  • Loading branch information
celiajmd and Celia Ji committed Oct 10, 2022
1 parent de3758e commit 16a89ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data_validation/validation_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ def get_query_from_file(self, filename):
try:
file = open(filename, "r")
query = file.read()
query = query.rstrip(";\n")
except IOError:
logging.warning("Cannot read query file: ", filename)

Expand Down

0 comments on commit 16a89ac

Please sign in to comment.