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

(Tables) Cannot truncate a table (generated CQL has syntax errors) #1577

Closed
hemidactylus opened this issue Oct 21, 2024 · 1 comment
Closed
Assignees

Comments

@hemidactylus
Copy link
Contributor

{
  "deleteMany": {
    "filter": {}
  }
}

yields (1.0.18)

{
    "errors": [
        {
            "message": "line 0:-1 mismatched input '<EOF>' expecting K_WHERE",
            "errorCode": "INVALID_QUERY"
        }
    ]
}

It looks like the CQL generation does not intercept the absence of predicates, hence it does not turn the CQL into a TRUNCATE statement at all.

@Yuqi-Du
Copy link
Contributor

Yuqi-Du commented Oct 30, 2024

Thanks! We have it coming.
#1623

@Yuqi-Du Yuqi-Du closed this as completed Oct 31, 2024
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

2 participants