Closed jasonmp85 closed 9 years ago
Assigned to @sumedhpathak for code review.
Looks good. If you have verified the test fails without the fix, you are good to :shipit:
Just verified that the test finds two temp tables (and fails) in a branch without the fix. Merging.
Data for multi-shard queries is pulled to the master node for final computation before the query returns. Temporary tables used to store this data should not persist past the end of the multi-shard queries; instead, they were persisting until the end of the session. This change gives these temporary tables
ON COMMIT DROP
behavior, which ensures they are destroyed as soon as the current query commits.Fixes #32.