Skip to content

docs(gaussdb): add the missing Supported Data Types section - #233

Open
heywalter wants to merge 2 commits into
mainfrom
docsloop/T-gaussdb-datatypes
Open

docs(gaussdb): add the missing Supported Data Types section#233
heywalter wants to merge 2 commits into
mainfrom
docsloop/T-gaussdb-datatypes

Conversation

@heywalter

Copy link
Copy Markdown
Collaborator

What

Adds the Supported Data Types section, which this page was missing entirely.
The connector declares 66 types; 64 are now listed, grouped into 11 categories.

Section placement follows the ordering used by sibling pages — right after
Supported Versions, same as postgresql.md and opengauss.md.

How the categories were chosen

Categories are not invented and not taken from the spec's internal
to field
(which maps everything to TapString/TapNumber/… — accurate
for the mapping engine, meaningless to a reader: uuid, inet and xml
would all land in one row).

Instead they are learned from the already-published connector pages, so this
table uses the same vocabulary readers already see elsewhere. Where a type
appears in no existing page, it was classified separately and confirmed by a
human before being used.

Two types deliberately omitted

Spec entry Why it is not in the table
NTERVAL [$FIELDS] [($fraction)] Looks like a typo for INTERVAL — the leading I is missing. Sibling connectors (postgres, opengauss) spell it interval.
precision Appears to be a leftover from double precision being split.

Both look like defects in the connector spec rather than real types.
Documenting them would carry a typo into user-facing docs where no reader
could tell it was one. Suggest fixing them in
temp.json instead; happy to add them here once corrected.

Evidence

Every type in the table comes from this file, pinned to the commit that was read:

Validation

  • Link check (incremental): 0 new warnings vs origin/main
    (baseline already carries 83 pre-existing warnings — the delta is what matters)

🤖 Proposed by Docs Loop · DocsLoop-Task: T-gaussdb
Reply on any line if a call is wrong — we tighten the rule, not just this PR.

The connector declares 66 data types; this page had no type table at all.
64 of them are listed here, grouped using the same category vocabulary as
the other PostgreSQL-family pages (postgresql.md, opengauss.md).

Two spec entries are deliberately left out — see the PR description.

Evidence:
  connectors/huawei-cloud-gaussdb-connector/src/main/resources/temp.json
  tapdata-connectors @ 76fbafd39a2739ab847eb12fb0c38511eade112f

DocsLoop-Task: T-gaussdb
@heywalter heywalter added the docs-loop Documentation change proposed by Docs Loop (evidence-pinned, code-derived) label Jul 23, 2026
@netlify

netlify Bot commented Jul 23, 2026

Copy link
Copy Markdown

Deploy Preview for tapdata-en ready!

Name Link
🔨 Latest commit 2341eb1
🔍 Latest deploy log https://app.netlify.com/projects/tapdata-en/deploys/6a61d573537aa90008f1f1ff
😎 Deploy Preview https://deploy-preview-233--tapdata-en.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 30dcb0c12c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/connectors/cloud-databases/huawei-cloud-gaussdb.md Outdated
Addresses the Codex review: the table showed a bare TIME while spelling out
both TIMESTAMP variants, so readers would reasonably conclude
TIME WITH TIME ZONE is unsupported.

Root cause was on our side: the type-name normaliser treated all bracketed
parts as parameter placeholders and stripped them, collapsing
  TIME [($fraction)] [WITHOUT TIME ZONE]
  TIME [($fraction)] [WITH TIME ZONE]
into a single TIME. TIMESTAMP survived only because its time-zone suffix
happens to sit outside the brackets in the same spec.

Now brackets containing $ are treated as placeholders and dropped; brackets
without $ are part of the type name and kept.
@heywalter

Copy link
Copy Markdown
Collaborator Author

Good catch — confirmed and fixed in the latest commit.

You were right that both variants exist in the connector metadata. The root cause was on our side: our type-name normaliser treated every bracketed segment as a parameter placeholder and stripped it, so

TIME [($fraction)] [WITHOUT TIME ZONE]
TIME [($fraction)] [WITH TIME ZONE]

both collapsed to TIME and were deduplicated. TIMESTAMP only survived because its time-zone suffix happens to sit outside the brackets in that same spec — so the inconsistency you spotted was the visible symptom of a normalisation bug, not a judgement call.

Fixed by distinguishing the two uses of brackets: segments containing $ are placeholders and get dropped; segments without $ are part of the type name and are kept. The Date/Time row now reads:

date, TIME WITHOUT TIME ZONE, TIME WITH TIME ZONE, INTERVAL DAY TO SECOND, SMALLDATETIME, TIMESTAMP, TIMESTAMP WITHOUT TIME ZONE, TIMESTAMP WITH TIME ZONE

Regression tests added so the two variants can't collapse again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-loop Documentation change proposed by Docs Loop (evidence-pinned, code-derived)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant