Skip to content

Improve ClickHouse type mapping documentation#13259

Closed
tangjiangling wants to merge 1 commit intotrinodb:masterfrom
tangjiangling:improve-clickhouse-type-mapping-docs
Closed

Improve ClickHouse type mapping documentation#13259
tangjiangling wants to merge 1 commit intotrinodb:masterfrom
tangjiangling:improve-clickhouse-type-mapping-docs

Conversation

@tangjiangling
Copy link
Member

Description

Is this change a fix, improvement, new feature, refactoring, or other?

Improvement.

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

ClickHouse type mapping doc.

How would you describe this change to a non-technical end user or system administrator?

N/A.

Related issues, pull requests, and links

Related #11448

Documentation

(x) Sufficient documentation is included in this PR.

Release notes

(x) No release notes entries required.

@cla-bot cla-bot bot added the cla-signed label Jul 20, 2022
@tangjiangling tangjiangling added the no-release-notes This pull request does not require release notes entry label Jul 20, 2022
@github-actions github-actions bot added the docs label Jul 20, 2022
The connector maps ClickHouse types to the corresponding Trino types following this table:

.. list-table:: ClickHouse type to Trino type mapping
:widths: 30, 20, 50
Copy link
Member

Choose a reason for hiding this comment

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

25, 25, 50 looks better considering DECIMAL(20,0) in Trino.

:widths: 30, 20, 50
:header-rows: 1

* - ClickHouse database type
Copy link
Member

Choose a reason for hiding this comment

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

nit: Just "ClickHouse type" is enough to me.

- ``DOUBLE``
- ``DOUBLE`` is an alias of ``Float64``
* - ``Decimal``
- ``DECIMAL``
Copy link
Member

Choose a reason for hiding this comment

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

Can we add (p, s) to both Decimal & DECIMAL?

- ``Float64``
-
* - ``DECIMAL``
- ``DECIMAL``
Copy link
Member

Choose a reason for hiding this comment

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

Change to Decimal for consistency and it would be better to add (p, s) likes read mapping.

@tangjiangling
Copy link
Member Author

Superseded by #13578

@tangjiangling tangjiangling deleted the improve-clickhouse-type-mapping-docs branch August 10, 2022 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed docs no-release-notes This pull request does not require release notes entry

Development

Successfully merging this pull request may close these issues.

2 participants