SQL: bytea support#585
Conversation
✅ Deploy Preview for rp-cloud ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
| | `payload = '\xDEADBEEF'::bytea`, `payload <> '\x00'::bytea` | ||
|
|
||
| | Sorting | ||
| | `SELECT * FROM binary_data ORDER BY payload` |
| | `SELECT * FROM binary_data ORDER BY payload` | ||
|
|
||
| | Distinct | ||
| | `SELECT DISTINCT payload FROM binary_data` |
| | `SELECT DISTINCT payload FROM binary_data` | ||
|
|
||
| | Group by | ||
| | `SELECT payload, COUNT(*) FROM binary_data GROUP BY payload` |
| * Aggregates such as `SUM`, `AVG`, `MAX`, `MIN` | ||
| * Pattern matching (`LIKE`, `ILIKE`) and regular expression operators | ||
| * Binary string functions such as `substring`, `position`, `overlay`, and `trim` | ||
| * Implicit or explicit casting between `text` and `bytea`. The only supported cast is from a string literal, using `'...'::bytea`. |
There was a problem hiding this comment.
move the supported cast to the "supported operations" section.
| The following operations are not supported on bytea values: | ||
|
|
||
| * Ordering operators (`<`, `>`, `\<=`, `>=`) | ||
| * Aggregates such as `SUM`, `AVG`, `MAX`, `MIN` | ||
| * Pattern matching (`LIKE`, `ILIKE`) and regular expression operators | ||
| * Binary string functions such as `substring`, `position`, `overlay`, and `trim` | ||
| * Implicit or explicit casting between `text` and `bytea`. The only supported cast is from a string literal, using `'...'::bytea`. |
There was a problem hiding this comment.
Does it make sence to enumerate unsupported operations? If the number of supported things is really narrow and much smaller than the list of unsupported operations. Then they are unsupported by default.
Description
This pull request adds documentation for the new
BYTEAdata type in Redpanda SQL, which allows storage and querying of arbitrary binary data. The changes include a new reference page forBYTEA, updates to the SQL data types summary table, and navigation updates to include the new documentation.Documentation for BYTEA data type:
bytea.adocdescribing theBYTEAdata type, its syntax, usage examples, supported and unsupported operations, literal formats, and how it maps to binary fields from external sources such as Iceberg, Protobuf, Avro, and Kafka record metadata.Documentation navigation and summary updates:
index.adocto includeBYTEA, describing its purpose and example literal formats.bytea.adocpage innav.adocso it appears in the reference documentation menu.Resolves https://github.com/redpanda-data/documentation-private/issues/
Review deadline:
Page previews
Checks