learnedcardinalities
learnedcardinalities copied to clipboard
How to get bitmap
Great work!
Is it possible to make the code about how to get the random samples and bitmap open source?
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:
- 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).
- Execute base table predicates on the sample table to obtain the bitmap (i.e., select the id column).
I hope this helps.
Thanks! This helps a lot!
Could you please let me know if you were able to generate bitmaps?