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

【attention】 please use backslashes ( "\ " ) to escape the dollar signs in Java in glue mode. #3515

Open
WallenHan opened this issue Jul 22, 2024 · 0 comments

Comments

@WallenHan
Copy link

WallenHan commented Jul 22, 2024

Please answer some questions before submitting your issue. Thanks!

Which version of XXL-JOB do you using?

2.4.0

Expected behavior

when I used to connect to mongodb to do some aggregations.

new Document("from", "OutkeyChats")
--
.append("localField", "id")
.append("foreignField", "id")
.append("as", "uidVariables")),
new Document("$unwind", "$uidVariables"),
new Document("$match",
new Document("$or", Arrays.asList(new Document("uidVariables.uid",
new Document("$ne",
new BsonNull())),
new Document("$expr",
new Document("$eq", Arrays.asList(new Document("$strLenCP", "$chatId"), 8L)))))),

Actual behavior

I must use “\$”, or you will get a no class found error.

Steps to reproduce the behavior

Other information

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

1 participant