Skip to content

Add strpos function as a synonym for position#35009

Open
ggevay wants to merge 1 commit intoMaterializeInc:mainfrom
ggevay:strpos
Open

Add strpos function as a synonym for position#35009
ggevay wants to merge 1 commit intoMaterializeInc:mainfrom
ggevay:strpos

Conversation

@ggevay
Copy link
Contributor

@ggevay ggevay commented Feb 13, 2026

PowerBI wants to use this, see
https://materializeinc.slack.com/archives/CU7ELJ6E9/p1771014597562589?thread_ts=1770243087.325139&cid=CU7ELJ6E9

(This was almost a one-shot from my AI agent, with the prompt pointing it to position's implementation.)

@ggevay ggevay marked this pull request as ready for review February 13, 2026 21:01
@ggevay ggevay requested review from a team as code owners February 13, 2026 21:01
@ggevay ggevay requested a review from aljoscha February 13, 2026 21:01
@github-actions
Copy link

Pre-merge checklist

  • The PR title is descriptive and will make sense in the git log.
  • This PR has adequate test coverage / QA involvement has been duly considered. (trigger-ci for additional test/nightly runs)
  • If this PR includes major user-facing behavior changes, I have pinged the relevant PM to schedule a changelog post.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).

@ggevay ggevay requested a review from antiguru February 13, 2026 21:04
Copy link
Member

@antiguru antiguru left a comment

Choose a reason for hiding this comment

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

Looks good, just a nit.

}
}

#[sqlfunc(propagates_nulls = true)]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#[sqlfunc(propagates_nulls = true)]
#[sqlfunc]

Propagates nulls is inferred from the parameters, none can handle null values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, thanks! Then I'm also deleting propagates_nulls = true from position.

@ggevay ggevay force-pushed the strpos branch 2 times, most recently from 46a59e3 to df94f62 Compare February 13, 2026 21:33
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