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

test: create a framework for testing functions #922

Merged
merged 4 commits into from
Nov 20, 2024

Conversation

grieve54706
Copy link
Contributor

@grieve54706 grieve54706 commented Nov 19, 2024

Test all functions in CSV could be executed.

@grieve54706 grieve54706 changed the base branch from main to test/all-functions November 19, 2024 06:55
@github-actions github-actions bot added ibis dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Nov 19, 2024
scalar,quote_ident,text,,text,"Quote identifier"
scalar,quote_literal,text,,any,"Quote literal"
scalar,quote_nullable,text,,any,"Quote nullable"
scalar,regexp_split_to_array,text[],,text&text,"Split string by pattern"
Copy link
Contributor

Choose a reason for hiding this comment

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

The array type should be defined like this

Suggested change
scalar,regexp_split_to_array,text[],,text&text,"Split string by pattern"
scalar,regexp_split_to_array,array<text>,,text&text,"Split string by pattern"

Comment on lines 65 to 67
# It will be failed because Rust can not read CSV correctly
# the_func = next(filter(lambda x: x["name"] == "extract", result))
# assert the_func == {
Copy link
Contributor

Choose a reason for hiding this comment

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

#925 would fix it

@grieve54706
Copy link
Contributor Author

Hi @goldmedal, I adjusted the CSV and CSV reader based on the new Wren core. It looks so good. Thanks for your help.

Copy link
Contributor

@goldmedal goldmedal left a comment

Choose a reason for hiding this comment

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

Thanks @grieve54706, It looks good to me.

@goldmedal goldmedal merged commit 367b3a1 into test/all-functions Nov 20, 2024
5 checks passed
@goldmedal goldmedal deleted the test/all-functions-for-pg branch November 20, 2024 02:12
@grieve54706 grieve54706 modified the milestone: 0.12.1 Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file ibis python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants