-
- Downloads
Fingerprints reduce over table-rows-sample instead of realizing all (#13688)
* Fingerprints reduce over table-rows-sample instead of realizing all tests are failing because we test fingerprinters a lot by supplying fake results and then reducing over those results. Now we are reducing over them in the query processor and need to get a better testing strategy. I think i can stub out the query-processor to take the `:rff` and just transduce over some fake supplied results but need to verify * Hijack query-processor to use rff on fake data * Docstring and make private `table-rows-sample-query` * Fix tests to use query function rather than hijack qp also was calling empty not empty? :( * drivers check [ci drivers] * Docstring cleanup for rff and remove outdated comment * Make rff required for table-rows-sample now you must reduce over the reducible row set rather than realizing the results in memory and then working with them * empty commit for drivers [ci drivers]
Showing
- modules/drivers/bigquery/test/metabase/driver/bigquery_test.clj 5 additions, 3 deletions...s/drivers/bigquery/test/metabase/driver/bigquery_test.clj
- modules/drivers/druid/test/metabase/driver/druid/query_processor_test.clj 2 additions, 1 deletion...druid/test/metabase/driver/druid/query_processor_test.clj
- modules/drivers/mongo/test/metabase/driver/mongo_test.clj 2 additions, 1 deletionmodules/drivers/mongo/test/metabase/driver/mongo_test.clj
- modules/drivers/presto/test/metabase/driver/presto_test.clj 2 additions, 1 deletionmodules/drivers/presto/test/metabase/driver/presto_test.clj
- src/metabase/db/metadata_queries.clj 36 additions, 27 deletionssrc/metabase/db/metadata_queries.clj
- src/metabase/sync/analyze/fingerprint.clj 19 additions, 19 deletionssrc/metabase/sync/analyze/fingerprint.clj
- test/metabase/db/metadata_queries_test.clj 12 additions, 16 deletionstest/metabase/db/metadata_queries_test.clj
- test/metabase/driver/mysql_test.clj 1 addition, 1 deletiontest/metabase/driver/mysql_test.clj
- test/metabase/driver/sql_jdbc_test.clj 2 additions, 1 deletiontest/metabase/driver/sql_jdbc_test.clj
- test/metabase/sync/analyze/fingerprint_test.clj 5 additions, 2 deletionstest/metabase/sync/analyze/fingerprint_test.clj
Please register or sign in to comment