saravanakumar1987 opened a new pull request, #31397: URL: https://github.com/apache/camel/pull/31397
# Description Fixes [CAMEL-28122](https://issues.apache.org/jira/browse/CAMEL-28122). ## Summary The producer gave a `BINARY` value of a row as the text of `Arrays.toString`, such as `[104, 105]`. A `BINARY` value of a primary key column or an attribute column now arrives as a `byte[]`. A route that read such a value as a `String` must now handle a `byte[]`. - `AlibabaOtsUtils.toPrimaryKeyMap` and `toColumnsList` put the `byte[]` that `asBinary` of the SDK returns for a `BINARY` value. - The producerOut body type text and the doc page say how the values arrive. - The upgrade guide has a section on it. ### Why only `BINARY` values change A value of another type keeps its text form, such as `42` for an `INTEGER` value. So only a route that reads a `BINARY` value sees a change. ## Tests - `binaryValueOfAColumnIsAByteArray` checks that a `BINARY` value of an attribute column is a `byte[]`, and it failed before the change. - `binaryValueOfAPrimaryKeyColumnIsAByteArray` checks the same for a primary key column, and it failed before the change. - The module build of camel-alibaba-ots ran 15 tests, none of them skipped, with no failure. - The catalog build ran 156 tests of `CamelCatalogTest`, none of them skipped, with no failure. # Target - [x] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch) # Tracking - [x] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). # Apache Camel coding standards and style - [x] I checked that each commit in the pull request has a meaningful subject line and body. - [x] I ran `mvn clean install -Dquickly -DskipTests` on the parent commit, and resumed it from camel-kserve with `-Dgrpc-version=1.85.1`. Then I ran `mvn install -nsu` in camel-alibaba-ots, catalog/camel-catalog (`-Dtest=CamelCatalogTest`) and both DSL modules (`-DskipTests`), and committed all generated changes. # AI-assisted contributions - [x] If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR description identifies the AI tool used. _Claude Code on behalf of saravanakumar1987_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
