Skip to content

Commit

Permalink
Automatically append ; to holdout query
Browse files Browse the repository at this point in the history
  • Loading branch information
dennybritz committed Apr 15, 2014
1 parent 4d63c1c commit 5bb6e7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ trait SQLInferenceDataStore extends InferenceDataStore with Logging {
s"""INSERT INTO ${VariablesHoldoutTable}(variable_id)
SELECT id FROM ${VariablesTable}
WHERE ${randomFunc} < ${holdoutFraction} AND is_evidence = true;""")
case Some(userQuery) => writer.println(userQuery)
case Some(userQuery) => writer.println(userQuery + ";")
}

writer.println(s"""UPDATE ${VariablesTable} SET is_evidence=false
Expand Down

0 comments on commit 5bb6e7f

Please sign in to comment.