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

Driver does not returns long strings #197

Open
realyota opened this issue Sep 27, 2019 · 6 comments
Open

Driver does not returns long strings #197

realyota opened this issue Sep 27, 2019 · 6 comments

Comments

@realyota
Copy link

Just connect to your clickhouse with:

isql -v ClickHouse

CREATE TABLE string_test
(
    `value` String
)
ENGINE = MergeTree
ORDER BY tuple()

insert into string_test(value) values ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')

select * from string_test

The result column value is empty.

SQLRowCount returns 1
1 rows fetched
@realyota realyota changed the title Driver does not returning long strings Driver does not returns long strings Sep 27, 2019
@c10h15n
Copy link

c10h15n commented Dec 13, 2019

Same problem, dude, more than 300 strings

@realyota
Copy link
Author

realyota commented Jan 30, 2020

Using libclickhouseodbcw.so as a driver resolved the issue.

@wushiming540
Copy link

I have same problem .
I install clickhouse-odbc on windows ,and tableau connect clickhouse by odbc,
select name, sum(1) from table group by name;
when name length longer than 16char, it will be Truncated。
ODBC version clickhouse-odbc-1.1.6-win64.msi。

@kfluous
Copy link

kfluous commented Apr 14, 2020

yes . 1.1.7-win64.msi still no work.
when i connected clickhouse-odbc to tableau and select one table which with MAC column.
original string is 00-E0-4C-1B-0A-CB,but i only got 00-E0-4C-1B-0A- in sheet.
when name length longer than 16char, it will be Truncated。

@kfluous
Copy link

kfluous commented Apr 14, 2020

I have same problem .
I install clickhouse-odbc on windows ,and tableau connect clickhouse by odbc,
select name, sum(1) from table group by name;
when name length longer than 16char, it will be Truncated。
ODBC version clickhouse-odbc-1.1.6-win64.msi。

clickhouse-odbc-1.1.6-win64.msi works for me .
i think it was caused by #261 (SQL_NO_TOTAL )

@traceon
Copy link
Collaborator

traceon commented Apr 14, 2020

With the following Custom SQL via ODBC Unicode driver built from master branch:

select CAST('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa100aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa200aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa300aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa400', 'String') as col

Tableau Desktop (Windows) shows the entire string just fine:
Screenshot 2020-04-14 at 13 27 55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants