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

fail: sql: expected 0 arguments, got 2 #36

Closed
lxiangv opened this issue May 11, 2024 · 6 comments
Closed

fail: sql: expected 0 arguments, got 2 #36

lxiangv opened this issue May 11, 2024 · 6 comments

Comments

@lxiangv
Copy link

lxiangv commented May 11, 2024

config.json

when I use this config file expecting to query data which id is between 1 and 9, it runs fail as the pic below

image

@Shane-XB-Qian
Copy link
Contributor

the log seems was incomplete, the err looks was the query failed.

@Breeze0806
Copy link
Owner

The issue arises when trying to split a table into one part. In this case, the job.setting has not been set, and therefore the number of tables to split into is set to 1.

@Shane-XB-Qian
Copy link
Contributor

that he/she pasted log was confused: expected 0 arguments, got 2, um...
my first feeling was: it was set to split 1~9, but actually there was nothing can be done for split?
so maybe if there had where clause would help?

@Breeze0806
Copy link
Owner

Breeze0806 commented May 13, 2024 via email

@Breeze0806
Copy link
Owner

@lxiangv Thank you for your feedback, now you can try again.

@Breeze0806
Copy link
Owner

Breeze0806 commented May 13, 2024

that he/she pasted log was confused: expected 0 arguments, got 2, um...
my first feeling was: it was set to split 1~9, but actually there was nothing can be done for split?
so maybe if there had where clause would help?

Yes,originally, when the table partition count was set to 1, we were in fact passing values for left and right to this SQL, but there was no need for parameter passing in the SQL itself, which led to this issue.

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