redpanda-data / redpanda-data/connect

Bloblang minification / alternative to newlines for separating statements

Open
#2,583 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ash pls bloblang enhancement
Dominant language
Go
Stars
8.8k
Forks
969
Avg merge
1d 13h
Merged PRs (30d)
64

Description

It would be nice to have an alternative character such as the semicolon for separating Bloblang statements.

Bonus: Have a CLI command which minifies Bloblang code (i.e. replaces newlines with semicolons and trims unnecessary whitespace) without altering raw strings (i.e. """ ... """).

Current workaround (it’s hackish and slow):

let mapping = """
data: |
  root.foo = "bar"
  root.bar = "baz"
""".parse_yaml().data

root = this.bloblang($mapping.replace_all("\\n", "\n"))

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating Bloblang parsing and CLI command code, then determine how semicolon-separated statements and minification should interact with raw strings; done means both behaviors work without altering raw-string contents.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, stream-processing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.