GithubHelp home page GithubHelp logo

arrow-flightsql-odbc's Introduction

Hi there ๐Ÿ‘‹

arrow-flightsql-odbc's People

Contributors

renovate-bot avatar renovate[bot] avatar royzhang2022 avatar timvw avatar

Stargazers

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

Watchers

 avatar

Forkers

bit-quill

arrow-flightsql-odbc's Issues

Received RecordBatch prior to Schema for query

Hi,

I am using arrow-flightsql-odbc to setup a flightsql service which could convert MSSQL result to arrow data. The MSSQL is setup without a problem. It could also connected with MSSQL ODBC Driver 18. But when I tested the service with flight_sql_client, I always got an error "Received RecordBatch prior to Schema". I am not sure what is wrong. Could you please help to indicate how to fix this problem? Thanks in advance! Please see details below.

The flight_sql_client is from arrow-flight.

--ODBC connection string 
export ODBC_CONNECTION_STRING="Driver={ODBC Driver 18 for SQL Server};Server=tcp:mssql-im-adbc.database.windows.net,1433;Database=mssql-im-adbc;Uid=xxxxx;Pwd=xxxxxx;Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;"

--server is started
$ cargo run server
   Compiling arrow-flightsql-odbc v0.2.0 (/home/azuser/arrow-flightsql-odbc)
    Finished dev [unoptimized + debuginfo] target(s) in 7.60s
     Running `target/debug/flightsql-odbc-server server`
[2024-02-01T01:20:58Z INFO  flightsql_odbc_server] odbc_connection_string: Driver={ODBC Driver 18 for SQL Server};Server=tcp:mssql-im-adbc.database.windows.net,1433;Database=mssql-im-adbc;Uid=xxxxx;Pwd=xxxxxx;Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;
[2024-02-01T01:20:58Z INFO  flightsql_odbc_server] binding to: 0.0.0.0:52358
--flight_sql_client command
$ ./target/release/flight_sql_client --host localhost --port 52358 statement-query "SELECT 1;"
Error: read flight data

Caused by:
    0: collect data stream
    1: ProtocolError("Received RecordBatch prior to Schema")
--output on server side
[2024-02-01T01:23:08Z INFO  arrow_flightsql_odbc::myserver] handling cmd: GetCommandSchema(GetCommandSchemaRequest { command: StatementQuery(CommandStatementQuery { query: "SELECT 1;" }), response_sender: Sender { inner: Some(Inner { state: State { is_complete: false, is_closed: false, is_rx_task_set: true, is_tx_task_set: false } }) } })
[2024-02-01T01:23:08Z WARN  odbc_api::handles::logging] State: 01000, Native error: 5701, Message: [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Changed database context to 'mssql-im-adbc'.
[2024-02-01T01:23:08Z WARN  odbc_api::handles::logging] State: 01000, Native error: 5703, Message: [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Changed language setting to us_english.
[2024-02-01T01:23:08Z INFO  arrow_flightsql_odbc::myserver] handling cmd: GetCommandData(GetCommandDataRequest { command: StatementQuery(CommandStatementQuery { query: "SELECT 1;" }), response_sender: Sender { chan: Tx { inner: Chan { tx: Tx { block_tail: 0x7fc27c00a300, tail_position: 0 }, semaphore: (Semaphore { permits: 100 }, 100), rx_waker: AtomicWaker, tx_count: 1, rx_fields: "..." } } } })
[2024-02-01T01:23:08Z WARN  odbc_api::handles::logging] State: 01000, Native error: 5701, Message: [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Changed database context to 'mssql-im-adbc'.
[2024-02-01T01:23:08Z WARN  odbc_api::handles::logging] State: 01000, Native error: 5703, Message: [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Changed language setting to us_english.

Best,
Roy

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

  • chore(deps): update all dependencies (actions/checkout, anyhow, arrow, arrow-odbc, arrow-schema, bytes, clap, docker/build-push-action, docker/login-action, env_logger, log, prost, prost-derive, prost-types, rust, serde, tokio, tokio-stream, tonic, tonic-build, tonic-reflection)

Detected dependencies

cargo
Cargo.toml
  • arrow-odbc 8.0.0
  • tokio 1.36.0
  • tonic 0.7
  • prost 0.10
  • prost-types 0.10.1
  • prost-derive 0.10
  • futures 0.3
  • arrow 50.0.0
  • arrow-schema 50.0.0
  • futures-core 0.3.21
  • log 0.4.17
  • env_logger 0.9.0
  • tokio-stream 0.1.8
  • async-stream 0.3.3
  • tonic-reflection 0.4.0
  • anyhow 1.0.57
  • clap 3.1.18
  • serde 1.0
  • bytes 1.1
  • tonic-build 0.7
dockerfile
deploy/Dockerfile
  • rust 1.60
github-actions
.github/workflows/docker-image.yml
  • actions/checkout v3
  • docker/login-action v2
  • docker/build-push-action v3

  • Check this box to trigger a request for Renovate to run again on this repository

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.