apache / apache/arrow-java

[Java][JDBC][FlightSql] Select query fails when using JDBC to query Sqlite example

Aberta
#165 8 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Java
Estrelas
94
Forks
152
Merge médio
3d 16h
PRs com merge (30d)
11

Descrição

### Describe the bug, including details regarding any error messages, version, and platform.

Running [this example](https://github.com/apache/arrow/blob/main/go/arrow/flight/flightsql/example/cmd/sqlite_flightsql_server/main.go)

I then use DBeaver with the Arrow JDBC Driver
![image](https://github.com/apache/arrow-java/assets/6108819/37254b9e-6326-4725-8434-94d3ae9f374e)

`jdbc:arrow-flight-sql://localhost:53822?useEncryption=false&disableCertificateVerification=true&user=flight_username&password=xxxx`

When running a Select statement and debugging, I see it is performing a Put on the backend and trying to run an Update statement resulting in no data:
![image](https://github.com/apache/arrow-java/assets/6108819/be4c9388-0436-4925-8d53-c7421583d1c1)

![image](https://github.com/apache/arrow-java/assets/6108819/4ac8f601-843f-42fb-b03d-56db7e6c015b)

![image](https://github.com/apache/arrow-java/assets/6108819/461021bb-b523-4485-b38a-a8729d5b3ea3)

If I run a Flight Server using [this example](https://github.com/voltrondata/flight-sql-server-example), and run a Select query, it works fine.
`jdbc:arrow-flight-sql://localhost:31337?useEncryption=true&disableCertificateVerification=true&user=flight_username&password=xxxx`
![image](https://github.com/apache/arrow-java/assets/6108819/ab6fa95d-0eb7-4b2f-a8b9-d01d2b92ebc4)

### Component(s)

Go

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Reproduza a falha com o exemplo Go sqlite_flightsql_server, o DBeaver e a Arrow JDBC URL mostrada no relatório. Compare-o com o flight-sql-server-example funcional e rastreie por que SELECT é tratado como uma atualização; considera-se concluído quando o exemplo SQLite retorna linhas de consulta por meio do driver JDBC.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
java, sqlite
Domínio
api, databases
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.