probcomp / iventure

An interactive, browser-based probabilistic programming environment.
Apache License 2.0
14 stars 2 forks source link

Add --columns=<col_list> flag to .nullify #63

Open curlette opened 7 years ago

curlette commented 7 years ago

This ticket is based on a student question from PPAML summer school.

If this were implemented, then I think there would still be a tradeoff between using SQL and BQL for nullifying values. In SQL, you could set multiple values in a single column to NULL simultaneously:

%sql UPDATE <table> SET <col> = NULL WHERE <col> IN (<values>)

whereas with BQL you could set a single value to null for multiple columns simultaneously:

%bql .nullify --columns=col1,col2,col3 <value>

However, if .nullify could also take multiple values, it would be the more efficient choice.