Git Product home page Git Product logo

Comments (3)

Jeffail avatar Jeffail commented on June 10, 2024

Hey @bkcsfi, right now you have two options:

  • Input data is read as batches, where each line is a message of a batch, and you can insert blank lines between messages to split the batches
  • Input data is read as a single message (containing all the content including line breaks)

It sounds like what you want can either be solved by inserting blank lines between each line (which is lame) or I can add a third option where each line is a single message batch, similar to the file and stdin inputs.

I'll mark this ticket as an enhancement for implementing the third option, but obviously I won't get mad if you just decide to add blank lines.

from benthos-lab.

bkcsfi avatar bkcsfi commented on June 10, 2024

Hi, thanks for the quick response.

I've watched all your videos and was using the labs version to setup a pipeline that can handle both plain text and json as input similar to your "intro to labs" video. It was confusing because the settings were set to "each line is a message".

Would it be clearer if this option was named "each line is a message in a multi-part batch" vs what I was really looking for which is "each line is a message in a single part batch".

Perhaps the phrasing is wrong, I'm still learning..

from benthos-lab.

Jeffail avatar Jeffail commented on June 10, 2024

Yeah I like that idea, I've I changed the names to try and make it clearer. We now have three options:

  • each line is a message of a batch
  • each line is a single message batch
  • single message

Implemented: d7893fe
Released: https://github.com/benthosdev/benthos-lab/releases/tag/v0.7.1

Currently upgrading the production deployment.

from benthos-lab.

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.