Skip to content

docs: move database and data store field text into the specs - #4868

Merged
JakeSCahill merged 4 commits into
mainfrom
docs/descriptions-data
Oct 8, 2026
Merged

JakeSCahill merged 4 commits into
mainfrom
docs/descriptions-data

Conversation

@JakeSCahill

@JakeSCahill JakeSCahill commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #4863. Review that first; this PR's diff is against its branch.

Why

The published reference for these components shows text from an overrides file in rp-connect-docs, not the descriptions in this repo, so --help and docs.redpanda.com disagree and neither side sees the other's fixes. #4863 makes the docs come straight from the specs. This PR brings the reviewed wording into the SQL, CDC, MongoDB, Redis, Snowflake, Elasticsearch, and other data store specs so retiring the overrides loses nothing.

Descriptions repeated within a package now have one source. The sql_insert output and processor share their fields through insertFields(), the four SQL processors share one failure note, Redis shares its retry fields, and the MongoDB CDC input reuses the MongoDB client's username and password text. Copies that span packages with no import between them are left for a follow-up. A few that look alike stay separate because the behavior differs: MongoDB rejects role and roles together while PostgreSQL and MySQL chain them, and CDC checkpoint_limit acknowledges an LSN for PostgreSQL but a binlog position for MySQL.

Fact corrections

Checked against the implementation:

  • postgres_cdc: "Using this field overrides the SSL/TLS settings..." was chained on the component spec instead of the tls field, so it replaced the component's whole description. It now documents tls.
  • SQL where placeholders: question marks become $1 for postgres, pgx, and clickhouse, and :1 for oracle and gocosmos. The old text named only two drivers.
  • SQL batch outputs max_in_flight bounds message batches, not individual inserts.
  • The deprecated sql output's link to sql_insert pointed at itself.
  • The elasticsearch_v8 upsert example had its two prices swapped; it now matches v9 and the mapping.
  • slot_name is required; the claim that a random name is generated is removed.
  • sql_raw exec_only defaults to true for every query except the last.

Everything else is wording. Behavior, defaults, and field flags are unchanged. The build, tests for the touched packages, and lint pass, and task docs passes.

@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-data branch from 5256bee to 69b23ee Compare September 29, 2026 13:52
@JakeSCahill
JakeSCahill changed the base branch from docs/generate-antora-partials to docs/descriptions-cloud September 29, 2026 13:52
Comment thread internal/impl/spicedb/watch_input.go Resolved
@Leward
Leward added this pull request to stack #4884 September 29, 2026 14:56
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-data branch from 69b23ee to 20833b9 Compare September 30, 2026 11:57
Comment thread internal/impl/spicedb/watch_input.go Resolved
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-data branch from 20833b9 to b1a5e50 Compare October 1, 2026 15:42
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-data branch from b1a5e50 to cc7af5e Compare October 5, 2026 12:10
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-data branch from cc7af5e to 8d912eb Compare October 5, 2026 14:43
Comment thread internal/impl/spicedb/watch_input.go Resolved
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-data branch from 8d912eb to d810c8a Compare October 5, 2026 16:12
Comment thread internal/impl/qdrant/processor.go Outdated
Description("The name of the Qdrant collection you want to query."),
service.NewBloblangField(qpFieldVectorMapping).
Description("The mapping to extract the search vector from the document.").
Description("A mapping to extract search vectors from the returned document.").

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc regression: vector_mapping doesn't run on the returned document. The new text says the mapping extracts search vectors "from the returned document". In the code, it runs on the incoming message before the search. Process calls msg.BloblangQuery(p.vectorMapping) (processor.go#L217-L226), and the result becomes the query vector sent to Qdrant. The old wording ("extract the search vector from the document") was right. The new wording could lead users to write a mapping against Qdrant's response shape.

Suggested fix: say the mapping extracts the search vector from the input message, which is then used to query the collection. That matches the CONTRIBUTING.md requirement for accurate documentation (§1.1.1).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JakeSCahill this one is still open at the head commit. The field still says "from the returned document", but the processor runs the mapping on the input message before the search.

The wrong text comes from the rp-connect-docs overrides, so the published docs have the same error.

Suggestion: "A mapping that extracts the search vector from the input message. The processor uses this vector to query the collection."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 2611b68 with your wording: the mapping extracts the search vector from the input message, and the processor uses it to query the collection. Sorry I missed this one.

@Leward Leward left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, with one pending claude review comment

@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-data branch from 983e01b to b195603 Compare October 7, 2026 09:07
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-data branch from b195603 to b0d176d Compare October 7, 2026 09:26
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-data branch from b0d176d to 2611b68 Compare October 7, 2026 13:05
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-data branch 2 times, most recently from 28663aa to 9becd56 Compare October 8, 2026 07:58
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-data branch 2 times, most recently from fabb22e to e80dfe1 Compare October 8, 2026 14:20
Base automatically changed from docs/descriptions-cloud to main October 8, 2026 14:21
Bring in the reviewed wording from the rp-connect-docs overrides for the
SQL, CDC, MongoDB, Redis, Snowflake, Elasticsearch, and other data store
components, correct the facts that were wrong in either copy, and give
each description repeated within a package a single source.
@JakeSCahill
JakeSCahill force-pushed the docs/descriptions-data branch from e80dfe1 to 718d737 Compare October 8, 2026 14:21
@JakeSCahill
JakeSCahill merged commit ba13f03 into main Oct 8, 2026
8 of 9 checks passed
@JakeSCahill
JakeSCahill deleted the docs/descriptions-data branch October 8, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants