You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
riastradh-probcomp
changed the title
make COLUMNS OF <generator> a first-class table in BQL
make `COLUMNS OF <generator>' a first-class table in BQL
Jun 9, 2015
Suppose we had three-way or n-way column functions, e.g. conditional mutual information. Then we'd have to add
ESTIMATE ... FROM TREBLEWISE COLUMNS OF <generator>
and so on -- but that's silly. All of these are naturally just selects on joins of the table of variables in the generator in question.
Not everything involves BQL functions. E.g., the function describe_generator_columns in bdbcontrib falls back to SQL and does a complex join on bayesdb_generator, bayesdb_column, and bayesdb_generator_column, which would be much better expressed via BQL using a select on COLUMNS OF <generator>.
You don't always want to join the columns of a generator with itself -- you might want to look up metadata about a column in some model by doing a join of COLUMNS OF <generator> and, say, bayesdb_crosscat_column or something. Or you might want to do it with multiple different tables, using qualified names:
ESTIMATE ... FROM COLUMNS OF <generator0> AS c0, COLUMNS OF <generator1> AS c1 ...
No description provided.
The text was updated successfully, but these errors were encountered: