citus/src/test/regress
eren 399b5738b0
Fix Join Problem With VARCHAR Partition Columns
This change fixes the problem with joins with VARCHAR columns. Prior to
this change, when we tried to do large table joins on varchar columns, we got
an error of the form:
ERROR: cannot perform local joins that involve expressions
DETAIL: local joins can be performed between columns only.

This is because we have a check in CheckJoinBetweenColumns() which requires the
join clause to have only 'Var' nodes (i.e. columns). Postgres adds a relabel t
ype cast to cast the varchar to text; hence the type of the node is not T_Var
and the join fails.

The fix involves calling strip_implicit_coercions() to the left and right
arguments so that RELABELTYPE is stripped to VAR.

Fixes #76.
2016-04-19 21:55:50 -06:00
..
data Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00
expected Fix Join Problem With VARCHAR Partition Columns 2016-04-19 21:55:50 -06:00
input Fix Shard Pruning Problem With Subqueries on VARCHAR Partition Columns 2016-04-19 21:55:50 -06:00
output Fix Shard Pruning Problem With Subqueries on VARCHAR Partition Columns 2016-04-19 21:55:50 -06:00
sql Fix Join Problem With VARCHAR Partition Columns 2016-04-19 21:55:50 -06:00
.gitignore Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00
Makefile Changed product name to citus 2016-02-15 16:04:31 +02:00
multi_fdw_schedule Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00
multi_schedule Send COPY rows in binary format 2016-04-12 20:22:31 +02:00
pg_regress_multi.pl Merge latest 5.0 release fixes 2016-03-23 17:43:34 -06:00
worker_schedule Initial commit of Citus 5.0 2016-02-11 04:05:32 +02:00