-
Notifications
You must be signed in to change notification settings - Fork 184
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
pipeline that includes $project doesn't seem to work #737
Comments
Hi, The reason is that monstache uses change event fields like Monstache use a library, gtm, to read the change stream and you can see below how only projecting the |
Ok, my requirement here is that I want to take only the changed fields from my mongoDB collection and update them in ElasticSearch. Is there a way to make it possible through monstache? |
I think what you would need to do for monstache is implement the monstache/monstachemap/plugin.go Line 26 in 6ccf33a
https://www.mongodb.com/docs/manual/reference/change-events/update/ For a newly created document in MongoDB the changed fields would probably be empty so you would just use the full document to update Elasticsearch. The changed fields would only apply for update operations. |
Hi,
trying to set up the
change-streams
with pipeline that includes$project
stage but the initial sync doesn't seem to work.Versions:
monstache: 6.7.17
opensearch: 8.16.1
mongoDB: 5.0.30
The config.toml file:
Working test.go:
Failing test.go:
When running the working version all works as expected:
When running the failing version the initial sync is not performed and no additional errors are produced by monstache:
Expected behaviour is atleast the Map function is called, but there is no print logs in the terminal
Any advice what I'm doing wrong or did I find an actual issue?
The text was updated successfully, but these errors were encountered: