From 3cbbcb7f302dc6db32740b2355516fab35498291 Mon Sep 17 00:00:00 2001 From: Alex Silverstein Date: Mon, 6 Jun 2016 21:35:44 +0000 Subject: [PATCH] Cleanup --- src/mml_utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mml_utils.py b/src/mml_utils.py index a71c749..79b53af 100644 --- a/src/mml_utils.py +++ b/src/mml_utils.py @@ -159,8 +159,10 @@ def validate_schema(bdb, table, mml_json): gen_name = uuid.uuid4().hex try: bdb.execute(to_mml(one_col_json, table, gen_name)) - bdb.execute('INITIALIZE 1 MODEL FOR %s' % bql_quote_name(gen_name)) - bdb.execute('ANALYZE %s FOR 1 ITERATION WAIT' % bql_quote_name(gen_name)) + bdb.execute('INITIALIZE 1 MODEL FOR %s' + % (bql_quote_name(gen_name),)) + bdb.execute('ANALYZE %s FOR 1 ITERATION WAIT' + % (bql_quote_name(gen_name),)) except AssertionError: bad_cols.append(col) finally: