cocoa-xu opened a new pull request, #1903:
URL: https://github.com/apache/arrow-adbc/pull/1903

   Hi this PR is a preliminary Go implementation for ClickHouse. I'll leave 
this PR as a draft until most data types are supported and have some tests for 
it. The screenshot below shows its current status doing a query on a CSV file 
in elixir.
   
   ```elixir
   Mix.install([{:adbc, "~> 0.4.2-dev", github: "elixir-explorer/adbc"}])
   
   defmodule ClickHouseTest do
     def test do
       children = [
         {Adbc.Database,
         "adbc.clickhouse.address": "127.0.0.1:9000",
         "adbc.clickhouse.sql.database": "default",
         "adbc.clickhouse.sql.username": "default",
          driver: "libadbc_driver_clickhouse.dylib",
          process_options: [name: MyApp.DB]},
         {Adbc.Connection, database: MyApp.DB, process_options: [name: 
MyApp.Conn]}
       ]
   
       Supervisor.start_link(children, strategy: :one_for_one)
       # dbg(Adbc.Connection.query(MyApp.Conn, "SELECT * FROM iris"))
       dbg(Adbc.Connection.query(MyApp.Conn, "SELECT * FROM file('iris.csv')"))
     end
   end
   
   ClickHouseTest.test()
   ```
   
   <img width="570" alt="Screenshot 2024-06-03 at 21 58 16" 
src="https://github.com/apache/arrow-adbc/assets/89497197/4832460e-0c6d-44f0-801b-72574d76df6b";>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to