Inserting into a table backed by pre-join projection HASH JOIN problem
Hi!
When inserting to a table that is backed by pre-join projection, our inserter failed with JOIN INNER DID NOT FIT IN MEMORY.
After researching, we noticed that Vertica internally does a HASH JOIN instead of MERGE JOIN (in EXPLAIN output) that could explain why it did not fit in memory.
Reproducible script can be found here and you can run it in vsql.
Explain of the first "insert into ... values ..." results in HASH JOIN, however explain of the second "insert into ... select" results in correct MERGE JOIN.
We think that also in the first case there should be a MERGE JOIN and thus this is a bug. Can you please confirm?
When inserting to a table that is backed by pre-join projection, our inserter failed with JOIN INNER DID NOT FIT IN MEMORY.
After researching, we noticed that Vertica internally does a HASH JOIN instead of MERGE JOIN (in EXPLAIN output) that could explain why it did not fit in memory.
Reproducible script can be found here and you can run it in vsql.
Explain of the first "insert into ... values ..." results in HASH JOIN, however explain of the second "insert into ... select" results in correct MERGE JOIN.
We think that also in the first case there should be a MERGE JOIN and thus this is a bug. Can you please confirm?
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
