bobhan1 opened a new pull request, #62085:
URL: https://github.com/apache/doris/pull/62085
### What problem does this PR solve?
Problem Summary:
FLOAT/DOUBLE types always default to BIT_SHUFFLE encoding. Users need a
table property to control whether PLAIN encoding is used instead, similar to
the existing `integer_type_default_use_plain_encoding` for integer types.
This PR adds a new immutable table property
`float_type_default_use_plain_encoding` (boolean, default `false`):
- When set to `true`, FLOAT/DOUBLE columns use PLAIN encoding instead of
BIT_SHUFFLE
- Cannot be modified after table creation (ALTER TABLE throws error)
- Displayed in SHOW CREATE TABLE output
- Orthogonal to storage format (V3 does not auto-enable this)
- Propagated through both non-cloud (thrift) and cloud (protobuf) paths
Usage:
```sql
CREATE TABLE t (k int, v1 float, v2 double)
DUPLICATE KEY(k)
DISTRIBUTED BY HASH(k) BUCKETS 1
PROPERTIES("float_type_default_use_plain_encoding" = "true");
```
Release note
Add a new table property float_type_default_use_plain_encoding to control
whether FLOAT/DOUBLE types use PLAIN encoding instead of the default
BIT_SHUFFLE encoding.
Check List (For Author)
- Test
- [X] Regression test
- [X] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason
- Behavior changed:
- [X] No.
- [ ] Yes.
- Does this need documentation?
- [ ] No.
- [X] Yes. <!-- Need to document the new table property -->
Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]