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

Type LowCardinality(Nullable(String)) not supported in v2.0.5 #169

Open
rpbarbosa opened this issue May 9, 2024 · 1 comment
Open

Type LowCardinality(Nullable(String)) not supported in v2.0.5 #169

rpbarbosa opened this issue May 9, 2024 · 1 comment

Comments

@rpbarbosa
Copy link

Description:
In version v2.0.5, when inserting into a table with a column of type LowCardinality(Nullable(String)), the column value is always null.

Steps to reproduce:
Just run this code and then do "SELECT * FROM TestTable", and you can see that the selected row has column string1 with value null. If running the exact same SQL statements in the ClickHouse HTTP client, the row has the expected value 'Test1'.

        using (ClickHouseConnection connection = new ClickHouseConnection(connectionString))
        {
            connection.Open();
            using (ClickHouseCommand command = connection.CreateCommand())
            {
                command.CommandText = @"CREATE TABLE TestTable
                                        (
                                            `id` UInt32,
                                            `string1` LowCardinality(Nullable(String)),
                                            `string2` Nullable(String)
                                        )
                                        ENGINE = MergeTree()
                                        ORDER BY (id)";
                command.ExecuteNonQuery();
            }
            using (ClickHouseCommand command = connection.CreateCommand())
            {
                command.CommandText = "INSERT INTO TestTable(id, string1, string2) VALUES (1,'Test1','Test2')";
                command.ExecuteNonQuery();
            }
        }

What should be done:
Add support for columns of type LowCardinality(Nullable(String))

@rpbarbosa rpbarbosa closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2024
@rpbarbosa
Copy link
Author

just noticed #121

@rpbarbosa rpbarbosa reopened this May 9, 2024
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

1 participant