learnedcardinalities icon indicating copy to clipboard operation
learnedcardinalities copied to clipboard

How to get bitmap

Open LumingSun opened this issue 7 years ago • 3 comments

Great work!

Is it possible to make the code about how to get the random samples and bitmap open source?

LumingSun avatar Sep 05 '19 03:09 LumingSun

Thanks!

The code is unfortunately part of a larger code base that we don't plan to release. However, you can easily obtain the bitmaps using your favorite DBMS (e.g., PostgreSQL) by creating a "sample table" for each base table:

  1. Insert up to 1,000 uniformly selected tuples from the base table (fewer if base table doesn’t have sufficient rows) and add an id column (starting from 0).
  2. Execute base table predicates on the sample table to obtain the bitmap (i.e., select the id column).

I hope this helps.

andreaskipf avatar Sep 06 '19 06:09 andreaskipf

Thanks! This helps a lot!

LumingSun avatar Sep 06 '19 07:09 LumingSun

Could you please let me know if you were able to generate bitmaps?

prekshashah5 avatar Jan 29 '26 11:01 prekshashah5