ClickHouse / ClickHouse/clickhouse-odbc

Ошибка "Cannot get the column information" в простом запросе к ClickHouse как Linked server в MS SQL через ODBC

Open
#371 7 comments 0 reactions 0 assignees View on GitHub
MSSQL need info
Dominant language
C
Stars
285
Forks
105
Avg merge
3h 56m
Merged PRs (30d)
3

Description

есть ClickHouse version 20.7.2.30 (official build)
таблица с полем типа Decimal(18, 2)
в MS SQL создан Linked Server через драйвер ODBC Release 1.1.9.20201226 win64 Unicode по инструкции в тесте
при попытке выбрать это поле из таблицы

exec ('select column_with_typeDecimal from table_name') at [ch_linkedserver]

возникает ошибка:
```
Сообщение 7399, уровень 16, состояние 1, строка 24
The OLE DB provider "MSDASQL" for linked server "ch_linkedserver" reported an error. The provider did not give any information about the error.
Сообщение 7350, уровень 16, состояние 2, строка 24
Cannot get the column information from OLE DB provider "MSDASQL" for linked server "ch_linkedserver".
```
в родном интерфейсе проблем нет. переполнения в поле не наблюдается, все попытки преобразовать данные к результату не приводят.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported EXEC query through the ch_linkedserver linked server with ClickHouse 20.7.2.30 and ODBC driver 1.1.9.20201226. Compare the Decimal(18, 2) column metadata with a query that does not select that column; the issue is done when the Decimal column can be selected without the OLE DB column-information error.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.