ClickHouse / clickhouse-odbc

ODBC driver for ClickHouse
https://clickhouse.tech
Apache License 2.0
247 stars 88 forks source link

Проблемы с прохождением тестов после сборки clickhouse-odbc #294

Closed cyalat3r closed 4 years ago

cyalat3r commented 4 years ago

Pre-build пакеты предлагаемые здесь собраны с использованием libicu50, которая отсутствует в репозиториях Ubuntu. Я собрал clickhouse-odbc с libicu66, но тесты

4 - clickhouse-odbc-client-it-dsn-0
5 - clickhouse-odbc-client-it-dsn-1
11 - clickhouse-odbcw-client-it-dsn-0
12 - clickhouse-odbcw-client-it-dsn-1

провалились.

Ошибки из логов:

[----------] 4 tests from StatementParametersTest
[ RUN      ] StatementParametersTest.BindingMissing
unknown file: Failure
C++ exception with description "1:[HY000][1]HTTP status code: 501
Received error:
Code: 48, e.displayText() = DB::Exception: Serialization is not implemented for data type Nothing (version 20.3.8.53 (official build))

" thrown in the test body.
[  FAILED  ] StatementParametersTest.BindingMissing (7 ms)
[ RUN      ] StatementParametersTest.BindingNoBuffer
unknown file: Failure
C++ exception with description "1:[HY000][1]HTTP status code: 500
Received error:
Code: 457, e.displayText() = DB::Exception: Value Null cannot be parsed as Nullable(Int32) for query parameter 'odbc_positional_1' because it isn't parsed completely: only 0 of 4 bytes was parsed: (version 20.3.8.53 (official build))

" thrown in the test body.
[  FAILED  ] StatementParametersTest.BindingNoBuffer (4 ms)
[ RUN      ] StatementParametersTest.BindingNullStringValueForInteger
unknown file: Failure
C++ exception with description "1:[HY000][1]HTTP status code: 500
Received error:
Code: 457, e.displayText() = DB::Exception: Value Null cannot be parsed as Nullable(Int32) for query parameter 'odbc_positional_1' because it isn't parsed completely: only 0 of 4 bytes was parsed: (version 20.3.8.53 (official build))

" thrown in the test body.
[  FAILED  ] StatementParametersTest.BindingNullStringValueForInteger (4 ms)
[ RUN      ] StatementParametersTest.BindingNullStringValueForString
/home/cyalat3r/clickhouse-odbc/driver/test/statement_parameters_it.cpp:261: Failure
Expected equality of these values:
  col
    Which is: 0
  1
[  FAILED  ] StatementParametersTest.BindingNullStringValueForString (3 ms)
[----------] 4 tests from StatementParametersTest (18 ms total)

Остальные тесты проходит, через isql коннектится.

traceon commented 4 years ago

Должно исправится вместе с https://github.com/ClickHouse/clickhouse-odbc/issues/236