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

SingleStore connector returns wrong text length with newer server versions #23780

Closed
ebyhr opened this issue Oct 15, 2024 · 0 comments · Fixed by #23797
Closed

SingleStore connector returns wrong text length with newer server versions #23780

ebyhr opened this issue Oct 15, 2024 · 0 comments · Fixed by #23797
Assignees

Comments

@ebyhr
Copy link
Member

ebyhr commented Oct 15, 2024

CREATE TABLE statement for SingleStore:

CREATE TABLE tpch.test (
 `a` text,
 `b` text CHARACTER SET utf8,
 `c` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL
);

The connector returns the expected column definitions when we create the table on SingleStore version 7.1.13.

trino:tpch> DESC test;
 Column |      Type      | Extra | Comment
--------+----------------+-------+---------
 a      | varchar(65535) |       |
 b      | varchar(65535) |       |
 c      | varchar(65535) |       |

However, the connector returns the wrong column definitions when we create the table on SingleStore version 8.7.16.

trino:tpch> DESC test;
 Column |      Type      | Extra | Comment
--------+----------------+-------+---------
 a      | varchar(16383) |       |
 b      | varchar(21845) |       |
 c      | varchar(21845) |       |

https://docs.singlestore.com/cloud/reference/sql-reference/data-types/string-types/

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

Successfully merging a pull request may close this issue.

1 participant