From e6667821b98e801202c2c4e6dc6b50da56d8048a Mon Sep 17 00:00:00 2001 From: Nalin Ranjan <55712645+nalin1729@users.noreply.github.com> Date: Tue, 19 Jan 2021 15:04:47 -0500 Subject: [PATCH] Fix orpheus run -f option --- orpheus/clt/click_entry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/orpheus/clt/click_entry.py b/orpheus/clt/click_entry.py index 7f9daeb..d627859 100644 --- a/orpheus/clt/click_entry.py +++ b/orpheus/clt/click_entry.py @@ -172,8 +172,10 @@ def execute_sql_file(ctx, param, value): click.echo("Executing SQL file at %s" % value) with open(abs_path, 'r') as f: for line in f: + if len(line.strip()) == 0: continue executable_sql = parser.parse(line) #print executable_sql + conn.execute_sql(executable_sql) ctx.exit() @cli.command()