GithubHelp home page GithubHelp logo

clickhouse.net's People

Contributors

antonalekseevaa avatar ilyabreev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

clickhouse.net's Issues

ADD COLUMN IF NOT EXISTS throws error

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.

TCP over HTTP advantages

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.

Socket Timeout

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()

image
use DBeaver 7.3.3 can use it!!!

InvalidOperationException в функции BulkInsert

При попытке передать в метод пустую последовательность в качестве данных для вставки происходит исключение InvalidOperationException. Это исключение выкидывает оригинальная библиотека Clickhouse.Ado, это ее поведение в случае с пустой последовательностью. Было бы удобно, если бы метод BulkInsert мог производить валидацию входных данных, это избавило бы от необходимости каждый раз при вызове метода предварительно выполнять эту проверку.

Invalid result of ClickHouseDatabase.TableExists method

Reproduction:

  1. Create default connection with clickhouse (connectionSettings.Database = "default")
  2. Then call database.ChangeDatabase( "someDatabase" );
  3. Then call database.TableExists( "existingTable" ). It will check default.existingTable instead of someDatabase.existingTable because of link

I think there should be:
cmd.AddParameter("database", _connection.Database);
instead of
cmd.AddParameter("database", _connectionSettings.Database);

Or i'm missing something?

Connection remains after closing

Reproduce

  1. Create connection with clickhouse to some database. (Init database).
  2. Open connection call database.Open().
  3. Change database database.ChangeDatabase( "someDatabase" );
  4. Close database connection call database.Close();.
  5. Call some method.I use database.DescribeTable("someTable").ToArray();
  6. I Exept some exception that connection was closed. But instead of this provider
    continues to execute commands. Also DescribeTable execute command in database which was specified when connection was created. (Similar to #6).

Функция ExecuteQueryMapping<T> работает не корректно

В функции нет преобразования типов при получении данных из ClickHouse. Например если свойство в принимающем объекте имеет тип Guid, то получая из ClickHouse данные типа String возникает исключение.

sir,how I can make it work?

I can use dbeaver with (host ,port ,dbname) just like below
image
but I don't know why you must use
Compress=True;CheckCompressedHash=False;Compressor=lz4;Host=192.168.0.163;Port=9000;User=default;
so I don't know how to make it work

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.