Skip to content

Removing Recheck and Filter Condition's columns from Bitmap Heap Scan output list when using ORCA.#284

Merged
Stolb27 merged 4 commits into6.19.0_arenadata31from
ADBDEV-2204-3
Jan 20, 2022
Merged

Removing Recheck and Filter Condition's columns from Bitmap Heap Scan output list when using ORCA.#284
Stolb27 merged 4 commits into6.19.0_arenadata31from
ADBDEV-2204-3

Conversation

@InnerLife0
Copy link

@InnerLife0 InnerLife0 commented Nov 19, 2021

The changes introduced in PR #12176 revealed a problem with excessive Bitmap Heap Scan's targetlist which includes Recheck and Filter Condition's columns (introduced in old 97edf9b).
Memory tuple binding generated based on targetlist with different count of attrs may point to different offsets and so, to some garbage or out of range memory area. See issue #12796 for more.
Additional regression test shows how to reproduce a bug before fix. A couple of tests was modified, because there is no need of projection in them started from this patch.

@InnerLife0 InnerLife0 changed the title ADBDEV-2204 Draft2 Removing Recheck Condition's columns from Bitmap Heap Scan output list when using ORCA. Nov 22, 2021
@InnerLife0 InnerLife0 marked this pull request as ready for review November 23, 2021 11:50
@Stolb27
Copy link
Collaborator

Stolb27 commented Dec 6, 2021

@maksm90, please take a look at this one.

@maksm90
Copy link

maksm90 commented Dec 13, 2021

Could anyone assume why the AddBitmapFilterColumns() call is needed in general if we get pcrsOutput list of attributes from upper nodes or compute it via PcrsRequired() method of BitmapTableScan node?

… output list when using ORCA.

The changes introduced in PR #12176 revealed a problem with excessive Bitmap Heap Scan's targetlist which includes Recheck and Filter Condition's columns (introduced in old 97edf9b).
Memory tuple binding generated based on targetlist with different count of attrs may point to different offsets and so, to some garbage or out of range memory area. See issue #12796 for more.
Additional regression test shows how to reproduce a bug before fix. A couple of tests was modified, because there is no need of projection in them started from this patch.
@InnerLife0 InnerLife0 changed the title Removing Recheck Condition's columns from Bitmap Heap Scan output list when using ORCA. Removing Recheck and Filter Condition's columns from Bitmap Heap Scan output list when using ORCA. Dec 16, 2021
maksm90
maksm90 previously approved these changes Dec 21, 2021
@Stolb27 Stolb27 changed the base branch from adb-6.x to 6.19.0_arenadata31 January 20, 2022 09:04
@Stolb27 Stolb27 changed the base branch from 6.19.0_arenadata31 to adb-6.x January 20, 2022 09:05
@Stolb27 Stolb27 dismissed maksm90’s stale review January 20, 2022 09:05

The base branch was changed.

@Stolb27 Stolb27 changed the base branch from adb-6.x to 6.19.0_arenadata31 January 20, 2022 09:05
@Stolb27 Stolb27 merged commit 18fec6c into 6.19.0_arenadata31 Jan 20, 2022
@Stolb27 Stolb27 deleted the ADBDEV-2204-3 branch January 20, 2022 10:40
RekGRpth pushed a commit that referenced this pull request Mar 2, 2026
* Retarget resgroup tests to v23 CI tag
* Set environment variable for force Docker client API version usage
  DOCKER_API_VERSION=1.41

Task: CI-5305
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants