ilyabreev / clickhouse.net Goto Github PK
View Code? Open in Web Editor NEWnetcore abstractions and helpers for Clickhouse.Ado
License: MIT License
netcore abstractions and helpers for Clickhouse.Ado
License: MIT License
I have the following issue. We use old clickhouse server versions, where ALTER COLUMN IF NOT EXISTS
expressions not supports yet. I think that add possibility to skip this errors can be helpful.
Also newer versions of clickhouse server (version must be lower then 19.3
) this expression is supports but contains bug ClickHouse/ClickHouse#4565
I try add supports for this cases - new option in ExecuteNonQuery
method. If is set to true
, then you can execute you ALTER COLUMN
expression without using IF NOT EXISTS
in query. Program behavior will be same as if the expression contained IF NOT EXISTS
keyword. This fix applicable only for ALTER COLUMN
.
Hi. I'm sorry for asking the question here.
What are the advantages of TCP
over the HTTP
ClickHouse
interface? (performance, reliability, security, maintainability, support of different formats like parquet and arrow, streaming support)
As I understand, It is much harder to support Native format and interface because of lack of specification. Most likely, Apache Parquet
+ HTTP
does not lose in speed to the native interface.
Why have you decided to implement the library on the native interface? Thank you in advance.
sir,how to bulk insert a list?
clickhouse-server-20.12.5.14-2
Unhandled exception. System.IO.IOException: Unable to read data from the transport connection: 由于连接方在一段时间后没 有正确答复或连接的主机没有反应,连接尝试失败。.
---> System.Net.Sockets.SocketException (10060): 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at ClickHouse.Ado.Impl.UnclosableStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at ClickHouse.Ado.Impl.ProtocolFormatter.ReadBytes(Int32 i)
at ClickHouse.Ado.Impl.ProtocolFormatter.ReadByte()
at ClickHouse.Ado.Impl.ProtocolFormatter.ReadUInt()
at ClickHouse.Ado.Impl.ProtocolFormatter.Handshake(ClickHouseConnectionSettings connectionSettings)
at ClickHouse.Ado.ClickHouseConnection.Open()
at ClickHouse.Net.ClickHouseDatabase.Open()
При попытке передать в метод пустую последовательность в качестве данных для вставки происходит исключение InvalidOperationException. Это исключение выкидывает оригинальная библиотека Clickhouse.Ado, это ее поведение в случае с пустой последовательностью. Было бы удобно, если бы метод BulkInsert мог производить валидацию входных данных, это избавило бы от необходимости каждый раз при вызове метода предварительно выполнять эту проверку.
Reproduction:
default.existingTable
instead of someDatabase.existingTable
because of linkI think there should be:
cmd.AddParameter("database", _connection.Database);
instead of
cmd.AddParameter("database", _connectionSettings.Database);
Or i'm missing something?
Reproduce
database.Open()
.database.ChangeDatabase( "someDatabase" );
database.Close();
.database.DescribeTable("someTable").ToArray();
В функции нет преобразования типов при получении данных из ClickHouse. Например если свойство в принимающем объекте имеет тип Guid, то получая из ClickHouse данные типа String возникает исключение.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.