jrossthomson / bigquery-utils

Useful scripts, udfs, views, and other utilities for migration and data warehouse operations in BigQuery.
https://cloud.google.com/bigquery/
Apache License 2.0
0 stars 0 forks source link

feat: chi square procedure #14

Closed imathews closed 3 years ago

imathews commented 3 years ago

This is a WIP of implementing chi-square as a stored procedure, where the user passes in a table name and column names to be computed on.

I followed the testing convention of the other stored procedure, get_next_id, where the test is just inlined in the procedure.

Important: this isn't yet ready to merge, there's something wrong in my math for the chi-square test, and I need to clean up the test case.