Skip to content
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

[Bug]: UInt Type Not Supprot to Read Or Write #136

Closed
2 tasks done
czy006 opened this issue Jun 14, 2024 · 2 comments · Fixed by #145
Closed
2 tasks done

[Bug]: UInt Type Not Supprot to Read Or Write #136

czy006 opened this issue Jun 14, 2024 · 2 comments · Fixed by #145
Assignees

Comments

@czy006
Copy link
Collaborator

czy006 commented Jun 14, 2024

What happened?

UInt Type Not Supprot to Read Or Write on connector

Affects Versions

master

What are you seeing the problem on?

No response

How to reproduce

img_v3_02bq_29471db6-b13b-4022-ab7d-a0e95ab2000g

Clickhouse Create Table SQL

CREATE TABLE test.persona_wide_table
(

    `id` UInt64,
    `col1` String,
    `col2` String,
    `col3` String
)
ENGINE = MergeTree
ORDER BY id
SETTINGS index_granularity = 8192;

Flink SQL Create And Select SQL

CREATE TABLE test
(
    `id` DECIMAL,
    `col1` String,
    `col2` String,
    `col3` String
) WITH (
    'connector' = 'clickhouse',
    'url' = 'jdbc:ch://xxxx:8123?useSSL=false',
    'database-name' = 'test',
    'table-name' = 'persona_wide_table',
    'sink.batch-size' = '500',
    'sink.flush-interval' = '1000',
    'sink.max-retries' = '3'
);

ClickHouseDataType
image

Relevant log output

No response

Anything else

  • Support read UnsignedLong Or UnsignedInteger

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

  • I agree to follow this project's Code of Conduct
@czy006 czy006 self-assigned this Jun 14, 2024
@itinycheng
Copy link
Owner

Hi @czy006 :
I'm working on data conversion logic for compatibility with clickhouse-jdbc 0.6.
Can you assign this issue to me?

@itinycheng
Copy link
Owner

Hi @czy006

I'm going to take over this issue if there are no more questions.
Hope to get your feedback.

czy006 added a commit that referenced this issue Aug 1, 2024
[Fix] Adjust data conversion logic for compatibility with clickhouse-jdbc 0.6 #136
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants