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

Import with parameters in ruby 3 #1014

Closed
jonnynux opened this issue Nov 16, 2021 · 4 comments
Closed

Import with parameters in ruby 3 #1014

jonnynux opened this issue Nov 16, 2021 · 4 comments

Comments

@jonnynux
Copy link

jonnynux commented Nov 16, 2021

When trying to import with parameters i get ArgumentError: wrong number of arguments (given 1, expected 0)

data.import(**import_options) do |response|
    ...
end

import_options is a hash obviously. Same error when calling import like data.import(batch_size:500) do |response|

@crondaemon
Copy link

Same happens on ruby2.7, except it is a warning there not an error. Still annoying, though.

@crondaemon
Copy link

I guess this would fixed by #1016. However the CI doesn't pass, nor the author signed the requested agreement. Any chance those issues get addressed?

@tiendo1011
Copy link

seems to be fixed by this, but it is not included in the latest release (since it's merged after that).

@jonnynux
Copy link
Author

@tiendo1011 thanks, I didn't note that, so this can be closed

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

No branches or pull requests

3 participants