Repository navigation
docs: move database and data store field text into the specs - #4868
Conversation
5256bee to
69b23ee
Compare
69b23ee to
20833b9
Compare
20833b9 to
b1a5e50
Compare
b1a5e50 to
cc7af5e
Compare
cc7af5e to
8d912eb
Compare
8d912eb to
d810c8a
Compare
| 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."). |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
@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."
There was a problem hiding this comment.
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.
d810c8a to
983e01b
Compare
Leward
left a comment
There was a problem hiding this comment.
Approved, with one pending claude review comment
983e01b to
b195603
Compare
b195603 to
b0d176d
Compare
b0d176d to
2611b68
Compare
28663aa to
9becd56
Compare
fabb22e to
e80dfe1
Compare
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.
e80dfe1 to
718d737
Compare
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
--helpand 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_insertoutput and processor share their fields throughinsertFields(), 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 rejectsroleandrolestogether while PostgreSQL and MySQL chain them, and CDCcheckpoint_limitacknowledges 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 thetlsfield, so it replaced the component's whole description. It now documentstls.whereplaceholders: question marks become$1forpostgres,pgx, andclickhouse, and:1fororacleandgocosmos. The old text named only two drivers.max_in_flightbounds message batches, not individual inserts.sqloutput's link tosql_insertpointed at itself.elasticsearch_v8upsert example had its two prices swapped; it now matches v9 and the mapping.slot_nameis required; the claim that a random name is generated is removed.sql_rawexec_onlydefaults totruefor 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 docspasses.