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

Support CONTAINS_SUBSTR function #45

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

ohaibbq
Copy link

@ohaibbq ohaibbq commented Apr 11, 2024

The zetasql library is missing this function spec, so we needed to register it with the catalog ourselves.

goccy/go-zetasql#34

Comment on lines +3352 to +3358
WITH Recipes AS (
SELECT 'Blueberry pancakes' as Breakfast, 'Egg salad sandwich' as Lunch, 'Potato dumplings' as Dinner UNION ALL
SELECT 'Potato pancakes', 'Toasted cheese sandwich', 'Beef stroganoff' UNION ALL
SELECT 'Ham scramble', 'Steak avocado salad', 'Tomato pasta' UNION ALL
SELECT 'Avocado toast', 'Tomato soup', 'Blueberry salmon' UNION ALL
SELECT 'Corned beef hash', 'Lentil potato soup', 'Glazed ham'
) SELECT * FROM Recipes WHERE CONTAINS_SUBSTR(Recipes, 'toast')`,

Choose a reason for hiding this comment

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

This is making me hungry

@ohaibbq ohaibbq merged commit 9b5a4e0 into candidate/rb20240201 Apr 11, 2024
7 checks passed
ohaibbq added a commit that referenced this pull request Jun 29, 2024
* Support `CONTAINS_SUBSTR` function

* lint
@ohaibbq ohaibbq deleted the dan/candidate-contains-substr branch July 8, 2024 01:42
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