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

[TCK Challenge]: The TCK is making the BETWEEN mandatory, however, it is not native supported by MongoDB #757

Open
1 task done
otaviojava opened this issue Jun 5, 2024 · 1 comment
Labels
challenge TCK Challenge
Milestone

Comments

@otaviojava
Copy link
Contributor

Specification

https://github.com/jakartaee/data/blob/78d53408461c0f5962d4fee7a2d780d226f71c0d/spec/src/main/asciidoc/query-language.asciidoc

Assertion

https://github.com/jakartaee/data/blob/78d53408461c0f5962d4fee7a2d780d226f71c0d/tck/src/main/java/ee/jakarta/tck/data/standalone/entity/EntityTests.java

TCK Version

1.0.0-RC1

Implementation being tested

Eclipse JNoSQL

Challenge Scenario

Something else

Full Description

Natively, MongoDB does not support the "between" keyword, making the

`UnsupportedOperation BETWEEN is not natively supported from mongoDB"

However, the TCK returns as an error:

[ERROR]   MyEntityTests>EntityTests.testQueryWithNot:1395 » UnsupportedOperation The condition BETWEEN is not natively supported from mongoDB
[ERROR]   MyEntityTests>EntityTests.testDataRepository:432 » UnsupportedOperation BETWEEN is not natively supported from mongoDB
[ERROR]   MyEntityTests>EntityTests.testDefaultMethod:455 » UnsupportedOperation The condition BETWEEN is not natively supported from mongoDB
[ERROR]   MyEntityTests>EntityTests.testDescendingSort:464 » UnsupportedOperation The condition BETWEEN is not natively supported from mongoDB
[ERROR]   MyEntityTests>EntityTests.testBasicRepository:135 » UnsupportedOperation The condition BETWEEN is not natively supported from mongoDB
[ERROR]   MyEntityTests>EntityTests.testCommonInterfaceQueries:398 » UnsupportedOperation The condition BETWEEN is not natively supported from mongoDB

Additional Context

No response

Is there an existing challenge for this?

  • I have searched the existing issues
@otaviojava otaviojava added the challenge TCK Challenge label Jun 5, 2024
@njr-11
Copy link
Contributor

njr-11 commented Jun 5, 2024

We need some more background information to determine if this challenge makes sense.

Does JNoSQL support GreaterThanEqual, And, and LessThanEqual keywords for Mongo? If it can support countByIdGreaterThanEqualAndIdLessThanEqual could it interpretcountByIdBetween the same?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
challenge TCK Challenge
Projects
None yet
Development

No branches or pull requests

3 participants