Skip to content

Conversation

@xiaoxmeng
Copy link
Contributor

Summary:
Fix a bug in IndexLookupJoin.cpp where the lookup input column was incorrectly using indexKeyName instead of probeKeyName

Replaces all VELOX_CHECK* macros with their SS_CHECK* equivalents in SequenceStorageIndexSource.cpp to use the Sequence Storage-specific exception handling macros for better error categorization and consistency.

Differential Revision: D92024520

@netlify
Copy link

netlify bot commented Feb 2, 2026

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit c19f8d3
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/69819bc8924662000734cdf4

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 2, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 2, 2026

@xiaoxmeng has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92024520.

xiaoxmeng added a commit to xiaoxmeng/velox that referenced this pull request Feb 2, 2026
…heck usage (facebookincubator#16205)

Summary:

Fix a bug in `IndexLookupJoin.cpp` where the lookup input column was incorrectly using `indexKeyName` instead of `probeKeyName`

Replaces all `VELOX_CHECK*` macros with their `SS_CHECK*` equivalents in `SequenceStorageIndexSource.cpp` to use the Sequence Storage-specific exception handling macros for better error categorization and consistency.

Reviewed By: breeze1990, ximyu

Differential Revision: D92024520
xiaoxmeng added a commit to xiaoxmeng/velox that referenced this pull request Feb 2, 2026
…heck usage (facebookincubator#16205)

Summary:

Fix a bug in `IndexLookupJoin.cpp` where the lookup input column was incorrectly using `indexKeyName` instead of `probeKeyName`

Replaces all `VELOX_CHECK*` macros with their `SS_CHECK*` equivalents in `SequenceStorageIndexSource.cpp` to use the Sequence Storage-specific exception handling macros for better error categorization and consistency.

Reviewed By: breeze1990, ximyu

Differential Revision: D92024520
xiaoxmeng added a commit to xiaoxmeng/velox that referenced this pull request Feb 2, 2026
…cebookincubator#16205)

Summary:

Fix lookup input column naming: In IndexLookupJoin.cpp, the lookup input column was incorrectly using indexKeyName (the index table's column name) instead of probeKeyName (the probe side's column name). This caused column name mismatches when the probe and index tables have different column names for the same join key. The fix ensures the lookup input type uses probe side column names, which are then mapped to index column names through lookupInputProjections_.

Deduplicate lookup input columns: When the same input column is used in multiple join conditions (e.g., a column used for both lower and upper bounds in a BETWEEN condition, or the same column appearing in multiple conditions), it was being added multiple times to inputType_, causing duplicate columns in the row type. Added folly::F14FastSet<std::string> lookupInputColumnSet to track seen columns and only add each column once to the lookup input.

Replaces all `VELOX_CHECK*` macros with their `SS_CHECK*` equivalents in `SequenceStorageIndexSource.cpp` to use the Sequence Storage-specific exception handling macros for better error categorization and consistency.

bypass-github-export-checks

Reviewed By: breeze1990, ximyu

Differential Revision: D92024520
xiaoxmeng added a commit to xiaoxmeng/velox that referenced this pull request Feb 3, 2026
…cebookincubator#16205)

Summary:

Fix lookup input column naming: In IndexLookupJoin.cpp, the lookup input column was incorrectly using indexKeyName (the index table's column name) instead of probeKeyName (the probe side's column name). This caused column name mismatches when the probe and index tables have different column names for the same join key. The fix ensures the lookup input type uses probe side column names, which are then mapped to index column names through lookupInputProjections_.

Deduplicate lookup input columns: When the same input column is used in multiple join conditions (e.g., a column used for both lower and upper bounds in a BETWEEN condition, or the same column appearing in multiple conditions), it was being added multiple times to inputType_, causing duplicate columns in the row type. Added folly::F14FastSet<std::string> lookupInputColumnSet to track seen columns and only add each column once to the lookup input.

Replaces all `VELOX_CHECK*` macros with their `SS_CHECK*` equivalents in `SequenceStorageIndexSource.cpp` to use the Sequence Storage-specific exception handling macros for better error categorization and consistency.

bypass-github-export-checks

Reviewed By: breeze1990, ximyu

Differential Revision: D92024520
xiaoxmeng added a commit to xiaoxmeng/velox that referenced this pull request Feb 3, 2026
…cebookincubator#16205)

Summary:

Fix lookup input column naming: In IndexLookupJoin.cpp, the lookup input column was incorrectly using indexKeyName (the index table's column name) instead of probeKeyName (the probe side's column name). This caused column name mismatches when the probe and index tables have different column names for the same join key. The fix ensures the lookup input type uses probe side column names, which are then mapped to index column names through lookupInputProjections_.

Deduplicate lookup input columns: When the same input column is used in multiple join conditions (e.g., a column used for both lower and upper bounds in a BETWEEN condition, or the same column appearing in multiple conditions), it was being added multiple times to inputType_, causing duplicate columns in the row type. Added folly::F14FastSet<std::string> lookupInputColumnSet to track seen columns and only add each column once to the lookup input.

Replaces all `VELOX_CHECK*` macros with their `SS_CHECK*` equivalents in `SequenceStorageIndexSource.cpp` to use the Sequence Storage-specific exception handling macros for better error categorization and consistency.

bypass-github-export-checks

Reviewed By: breeze1990, ximyu

Differential Revision: D92024520
xiaoxmeng added a commit to xiaoxmeng/velox that referenced this pull request Feb 3, 2026
…cebookincubator#16205)

Summary:

Fix lookup input column naming: In IndexLookupJoin.cpp, the lookup input column was incorrectly using indexKeyName (the index table's column name) instead of probeKeyName (the probe side's column name). This caused column name mismatches when the probe and index tables have different column names for the same join key. The fix ensures the lookup input type uses probe side column names, which are then mapped to index column names through lookupInputProjections_.

Deduplicate lookup input columns: When the same input column is used in multiple join conditions (e.g., a column used for both lower and upper bounds in a BETWEEN condition, or the same column appearing in multiple conditions), it was being added multiple times to inputType_, causing duplicate columns in the row type. Added folly::F14FastSet<std::string> lookupInputColumnSet to track seen columns and only add each column once to the lookup input.

Replaces all `VELOX_CHECK*` macros with their `SS_CHECK*` equivalents in `SequenceStorageIndexSource.cpp` to use the Sequence Storage-specific exception handling macros for better error categorization and consistency.

bypass-github-export-checks

Reviewed By: breeze1990, ximyu

Differential Revision: D92024520
…cebookincubator#16205)

Summary:

Fix lookup input column naming: In IndexLookupJoin.cpp, the lookup input column was incorrectly using indexKeyName (the index table's column name) instead of probeKeyName (the probe side's column name). This caused column name mismatches when the probe and index tables have different column names for the same join key. The fix ensures the lookup input type uses probe side column names, which are then mapped to index column names through lookupInputProjections_.

Deduplicate lookup input columns: When the same input column is used in multiple join conditions (e.g., a column used for both lower and upper bounds in a BETWEEN condition, or the same column appearing in multiple conditions), it was being added multiple times to inputType_, causing duplicate columns in the row type. Added folly::F14FastSet<std::string> lookupInputColumnSet to track seen columns and only add each column once to the lookup input.

Replaces all `VELOX_CHECK*` macros with their `SS_CHECK*` equivalents in `SequenceStorageIndexSource.cpp` to use the Sequence Storage-specific exception handling macros for better error categorization and consistency.

bypass-github-export-checks

Reviewed By: breeze1990, ximyu

Differential Revision: D92024520
xiaoxmeng added a commit to xiaoxmeng/velox that referenced this pull request Feb 3, 2026
…cebookincubator#16205)

Summary:

Fix lookup input column naming: In IndexLookupJoin.cpp, the lookup input column was incorrectly using indexKeyName (the index table's column name) instead of probeKeyName (the probe side's column name). This caused column name mismatches when the probe and index tables have different column names for the same join key. The fix ensures the lookup input type uses probe side column names, which are then mapped to index column names through lookupInputProjections_.

Deduplicate lookup input columns: When the same input column is used in multiple join conditions (e.g., a column used for both lower and upper bounds in a BETWEEN condition, or the same column appearing in multiple conditions), it was being added multiple times to inputType_, causing duplicate columns in the row type. Added folly::F14FastSet<std::string> lookupInputColumnSet to track seen columns and only add each column once to the lookup input.

Replaces all `VELOX_CHECK*` macros with their `SS_CHECK*` equivalents in `SequenceStorageIndexSource.cpp` to use the Sequence Storage-specific exception handling macros for better error categorization and consistency.

bypass-github-export-checks

Reviewed By: breeze1990, ximyu

Differential Revision: D92024520
xiaoxmeng added a commit to xiaoxmeng/velox that referenced this pull request Feb 3, 2026
…cebookincubator#16205)

Summary:

Fix lookup input column naming: In IndexLookupJoin.cpp, the lookup input column was incorrectly using indexKeyName (the index table's column name) instead of probeKeyName (the probe side's column name). This caused column name mismatches when the probe and index tables have different column names for the same join key. The fix ensures the lookup input type uses probe side column names, which are then mapped to index column names through lookupInputProjections_.

Deduplicate lookup input columns: When the same input column is used in multiple join conditions (e.g., a column used for both lower and upper bounds in a BETWEEN condition, or the same column appearing in multiple conditions), it was being added multiple times to inputType_, causing duplicate columns in the row type. Added folly::F14FastSet<std::string> lookupInputColumnSet to track seen columns and only add each column once to the lookup input.

Replaces all `VELOX_CHECK*` macros with their `SS_CHECK*` equivalents in `SequenceStorageIndexSource.cpp` to use the Sequence Storage-specific exception handling macros for better error categorization and consistency.

bypass-github-export-checks

Reviewed By: breeze1990, ximyu

Differential Revision: D92024520
PingLiuPing pushed a commit to PingLiuPing/velox that referenced this pull request Feb 3, 2026
…cebookincubator#16205)

Summary:
Pull Request resolved: facebookincubator#16205

Fix lookup input column naming: In IndexLookupJoin.cpp, the lookup input column was incorrectly using indexKeyName (the index table's column name) instead of probeKeyName (the probe side's column name). This caused column name mismatches when the probe and index tables have different column names for the same join key. The fix ensures the lookup input type uses probe side column names, which are then mapped to index column names through lookupInputProjections_.

Deduplicate lookup input columns: When the same input column is used in multiple join conditions (e.g., a column used for both lower and upper bounds in a BETWEEN condition, or the same column appearing in multiple conditions), it was being added multiple times to inputType_, causing duplicate columns in the row type. Added folly::F14FastSet<std::string> lookupInputColumnSet to track seen columns and only add each column once to the lookup input.

Replaces all `VELOX_CHECK*` macros with their `SS_CHECK*` equivalents in `SequenceStorageIndexSource.cpp` to use the Sequence Storage-specific exception handling macros for better error categorization and consistency.

bypass-github-export-checks

Reviewed By: breeze1990, ximyu

Differential Revision: D92024520

fbshipit-source-id: 23bec9f72ce854a3e2d737ade8a741a053648682
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants