-
Notifications
You must be signed in to change notification settings - Fork 49
docs: update numeric type aliases aligned with PostgreSQL and MySQL #2231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add INT2 as alias for Int16 (SMALLINT) - Add INT4 as alias for Int32 (INT) - Add INT8 as alias for Int64 (BIGINT) - Add FLOAT4 as alias for Float32 (FLOAT) - Add FLOAT8 as alias for Float64 (DOUBLE) This aligns with the changes from PR #7270 in greptimedb repository. Co-authored-by: killme2008 <14142+killme2008@users.noreply.github.com>
Deploying greptime-docs with
|
| Latest commit: |
cebf256
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://11fbdfe6.greptime-docs.pages.dev |
| Branch Preview URL: | https://copilot-update-numeric-type.greptime-docs.pages.dev |
|
@copilot Need to update the chinese version too. And add some descriptions for these special alias to work with PG/MySQL, may be a new column in table? I am not sure. |
Add a warning callout to document the breaking change where INT8 now maps to BigInt (64-bit) instead of TinyInt (8-bit) to align with PostgreSQL and MySQL conventions. Co-authored-by: killme2008 <14142+killme2008@users.noreply.github.com>
- Clarify that Int2, Int4, Int8, Float4, Float8 refer to bytes not bits - Add all new aliases to the warning (including Float4 and Float8) - Explain the difference between native type Int8 and SQL alias INT8 - List specific mappings for all new aliases Co-authored-by: killme2008 <14142+killme2008@users.noreply.github.com>
Co-authored-by: killme2008 <14142+killme2008@users.noreply.github.com>
|
@copilot I said you must also update the corresponding Chinese document. |
- Add Int2, Int4, Int8, Float4, Float8 aliases to Chinese docs - Add warning callout in Chinese explaining breaking changes - Mirror changes from English version to maintain consistency Co-authored-by: killme2008 <14142+killme2008@users.noreply.github.com>
Chinese documentation has been updated in commit 667fce0 with the same type aliases and warning as the English version.
Updated the Chinese documentation in commit 667fce0. The type alias table and breaking change warning are now consistent between English and Chinese versions. |
|
@copilot |
Specify that Int8 is a signed integer type in Chinese docs for better clarity Co-authored-by: killme2008 <14142+killme2008@users.noreply.github.com>
Updated note to explain that GreptimeDB native type names (UInt8, Int32, Int64) use bits, while SQL aliases (Int2, Int4, Int8) use bytes following PostgreSQL/MySQL conventions. Added example comparing Int8 (8-bit) vs INT8 (8-byte). Co-authored-by: killme2008 <14142+killme2008@users.noreply.github.com>
... Updated the note in commit 69d11a0 to clarify the distinction: GreptimeDB native type names (like |
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
killme2008
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
Revert the type alias table column's order:
Add some notes and warnings.
Summary
Successfully updated both English and Chinese documentation to reflect the new numeric type aliases introduced in greptimedb PR #7270. Documentation now clearly explains the distinction between GreptimeDB's bit-based native type names and the byte-based SQL aliases.
Final Changes:
English Documentation (
docs/reference/sql/data-types.md):Int2,Int4,Int8,Float4,Float8aliasesChinese Documentation (
i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/data-types.md):Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.