Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bigquery): Add parsing support for STRPOS(...) #4378

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

VaggelisD
Copy link
Collaborator

This PR adds parsing support for exp.StrPosition in BigQuery, enabling it's transpilation:

bigquery> SELECT STRPOS('foo@example.com', '@');
4

snowflake> SELECT POSITION('@', 'foo@example.com');
4

duckdb> SELECT STRPOS('foo@example.com', '@');
┌────────────────────────────────┐
│ strpos('foo@example.com', '@') │
│             int64              │
├────────────────────────────────┤
│                              4 │
└────────────────────────────────┘

Docs

BQ | DuckDB | Snowflake

@georgesittas georgesittas merged commit 72ffdcb into main Nov 12, 2024
6 checks passed
@georgesittas georgesittas deleted the vaggelisd/bq_strpos branch November 12, 2024 10:34
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