Skip to content

fix: Add handling for spark correlations with no numeric fields#1796

Closed
MCBoarder289 wants to merge 1 commit intoData-Centric-AI-Community:developfrom
MCBoarder289:fix/1722-spark-correlation-empty-handling
Closed

fix: Add handling for spark correlations with no numeric fields#1796
MCBoarder289 wants to merge 1 commit intoData-Centric-AI-Community:developfrom
MCBoarder289:fix/1722-spark-correlation-empty-handling

Conversation

@MCBoarder289
Copy link
Copy Markdown
Contributor

This change addresses issue #1722 (#1722).

Assembling a vector column in Spark with no numeric columns results in features with a NULL size, NULL indices, and an empty list of values. This causes an exception to be raised when computing correlations.

The solution here is to avoid computing the correlation matrix when there are no interval columns (numeric).

@MCBoarder289 MCBoarder289 force-pushed the fix/1722-spark-correlation-empty-handling branch 2 times, most recently from 4a52804 to c61b276 Compare December 7, 2025 03:26
This change addresses issue Data-Centric-AI-Community#1722 (Data-Centric-AI-Community#1722).

Assembling a vector column in Spark with no numeric columns results in features with a NULL size, NULL indices, and an empty list of values.
This causes an exception to be raised when computing correlations.

The solution here is to avoid computing the correlation matrix when there are no interval columns (numeric).
@MCBoarder289 MCBoarder289 force-pushed the fix/1722-spark-correlation-empty-handling branch from c61b276 to a6195ac Compare December 7, 2025 21:35
@MCBoarder289
Copy link
Copy Markdown
Contributor Author

Closing in favor of #1800 which fixes multiple issues at once

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.

1 participant