Skip to content

Simplify implementation of hasSingleOutput#3014

Merged
fulghum merged 1 commit intomainfrom
fulghum/exprs
Jun 6, 2025
Merged

Simplify implementation of hasSingleOutput#3014
fulghum merged 1 commit intomainfrom
fulghum/exprs

Conversation

@fulghum
Copy link
Copy Markdown
Contributor

@fulghum fulghum commented Jun 5, 2025

As part of adding support for IS NULL and IS NOT NULL implementations that can match Postgres's behavior for records, I've been digging through the references to expression.IsNull in GMS so that we can have a separate implementation for Doltgres that GMS can still analyze correctly.

One reference to expression.IsNull is in the hasSingleOutput which is used to determine if an expression result has a single row or more than one row. The only expression implementation I was able to find that actually returns multiple rows is plan.Subquery, so I simplified this function to remove the reference to expression.IsNull.

Copy link
Copy Markdown
Contributor

@jycor jycor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fulghum fulghum merged commit 9ad3489 into main Jun 6, 2025
9 checks passed
@Hydrocharged Hydrocharged deleted the fulghum/exprs branch December 17, 2025 07:31
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.

2 participants