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

YCSB workloade(short ranges) scan table error #13043

Open
huangjw806 opened this issue Oct 25, 2023 · 3 comments
Open

YCSB workloade(short ranges) scan table error #13043

huangjw806 opened this issue Oct 25, 2023 · 3 comments
Assignees
Labels
help wanted Issues that need help from contributors no-issue-activity type/bug Something isn't working

Comments

@huangjw806
Copy link
Contributor

@huangjw806 huangjw806 added the type/bug Something isn't working label Oct 25, 2023
@github-actions github-actions bot added this to the release-1.4 milestone Oct 25, 2023
@huangjw806 huangjw806 added the help wanted Issues that need help from contributors label Oct 25, 2023
@lmatz
Copy link
Contributor

lmatz commented Oct 25, 2023

The entire error message is

2023-10-24T11:38:30.852631026Z ERROR pgwire::pg_protocol: failed to parse sql: SELECT * FROM usertable WHERE YCSB_KEY >= $1 ORDER BY YCSB_KEY FETCH FIRST $2 ROWS ONLY: sql parser error: Expected a value, found: $2 at line:1, column:75 Near " BY YCSB_KEY FETCH FIRST $2"
--
FETCH FIRST $2 ROWS ONLY

hmmm, is it the same as limit $2 ?

Edit:

FETCH FIRST 1 ROWS ONLY

is supported.

I suppose the error is due to $2, a prepared statement?

@lmatz
Copy link
Contributor

lmatz commented Oct 25, 2023

What is confusing is that only workloade has such a problem while workloada to workloadd is fine: https://github.com/brianfrankcooper/YCSB/tree/master/workloads

Edit:
workloade's configuration has the line
maxscanlength=100
https://github.com/brianfrankcooper/YCSB/blob/master/workloads/workloade#L42
while others don't.

Edit:
https://github.com/brianfrankcooper/YCSB/blob/master/postgrenosql/src/main/java/site/ycsb/postgrenosql/PostgreNoSQLDBClient.java#L184-L185
I supposed $2 comes from here

And it uses a prepared statement inside the createAndCacheScanStatement, which I suppose Risingwave has not supported yet: https://github.com/brianfrankcooper/YCSB/blob/ce3eb9ce51c84ee9e236998cdd2cefaeb96798a8/jdbc/src/main/java/site/ycsb/db/JdbcDBClient.java#L325

@fuyufjh fuyufjh modified the milestones: release-1.4, release-1.5 Nov 8, 2023
@lmatz lmatz removed this from the release-1.5 milestone Jan 9, 2024
Copy link
Contributor

This issue has been open for 60 days with no activity. Could you please update the status? Feel free to continue discussion or close as not planned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issues that need help from contributors no-issue-activity type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants