Giter VIP home page Giter VIP logo

Comments (5)

albertwgchu avatar albertwgchu commented on June 26, 2024 1

Hi,

I didn't realize the incrementing.field.name should be unique, thanks for mentioning that.

I am using it with a a timestamp but multiple records could have the same time stamp if they are processed at the same time.

I think the secondary sort field makes sense.

from kafka-connect-elasticsearch-source.

DarioBalinzo avatar DarioBalinzo commented on June 26, 2024 1

Hi @albertwgchu, I've published a pre-release (1.4) with the secondary sort feature.

You can use the incrementing.secondary.field.name settings to specify the secondary sort field. Note that text fields cannot be sorted, so if you need to sort string fields you will need to use keyword fields.

If everything is fine also for your side, I will mark version 1.4 as stable.

from kafka-connect-elasticsearch-source.

DarioBalinzo avatar DarioBalinzo commented on June 26, 2024

Hi @albertwgchu,
the incrementing incrementing.field.name should be a strictly increasing field (no duplicates), to avoid the described issue.
So, in the described situation you may loose some records.

Maybe in a new version I can add a secondary field for pagination, to avoid this issue. The _id field would be great, but it is not possible to sort it. However I can add a custom secondary sort field, so let say when you have duplicates n the primary increasing field, the secondary will help in pagination avoiding data losses.

Could it be useful to you?

from kafka-connect-elasticsearch-source.

DarioBalinzo avatar DarioBalinzo commented on June 26, 2024

Cool, I will add configurable secondary sort field in the next version.

from kafka-connect-elasticsearch-source.

albertwgchu avatar albertwgchu commented on June 26, 2024

I will take a look in the next few days.

from kafka-connect-elasticsearch-source.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.