4 Commits

Author SHA1 Message Date
gayyappan
87a190afcd Fix nested loop joins for compressed chunk
This change adds equivalence class members for non segment
by attributes of compressed tables. Before the change
introduced by this PR, we added equivalence members to the
compressed chunk only for segment by columns. If we
have a join condition like:
hyper.segment_col = A.col1 and hyper.compressed_attr = A.col2
The compressed rel had EM only for
compressed_chunk.segment_col = A.col1

When a parameterized path is created for the compressed chunk,
it has only 1 clause (corresponding to the segment by EM )
in its list of ppi_clauses. The other clause is missing since
it did not have an EM. A parameterized path is expected to carry
all the clauses that come from the outer_rel for the join
(table A in this case).Since the ppi_clauses did not have all
the clauses that come from table A, we ended up missing a join
condition (for table A) when we had a parameterized index path
for the compressed chunk.

Fixes #2673
2021-01-27 14:06:16 -05:00
Sven Klemm
0c1f967ef8 Refactor transparent_decompression test
This PR reduces the dataset size in the transparent_decompression
test to make it finish in a more reasonable time. It also splits
the test and modifies queries that used now(). Due to the change
in dataset size the resulting diff is rather large but is mostly
row count changes in the plan but the actual plan shapes don't
change. In addition to those changes to some LATERAL queries
additional constraints have been added to reduce the number of
loops.
2020-06-25 18:42:54 +02:00
gayyappan
6dad1f246a Add joininfo to compressed rel
If the joininfo for a rel is not available, the index path
cannot compute the correct filters for parameterized paths
as the RelOptInfo's ppilist is setup using information
from the joininfo.

Fixes 1558
2019-12-31 13:21:09 -05:00
gayyappan
887d0271e8 Enable Index Backward Scan
enable index backward scan and backward scan of chunk data
by checking if the compress_orderby columns can satisfy the
required sort order
2019-10-29 19:02:58 -04:00