TIME (time64[ns]) type unhandled

オープン
#505 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
67/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go

調査の方向性

Start by locating the Arrow row scanner's type switch, where the issue says time32 and time64 are unhandled and DATE and TIMESTAMP already have arms. Reproduce with SELECT TIME '09:15:00.123456' against a SQL warehouse and trace how the Arrow batch value reaches rows.Scan. Done when TIME scans as a time of day without a date or location, and an unsupported column does not prevent rows from being returned.

索引モデルが issue の本文から書いたものです。

説明

bug engineer-bot

QueryContext + rows.Next fails for a TIME column. The server returns the value as an Arrow time64 (nanoseconds, including when the SQL type is TIME with microsecond precision). The Arrow row scanner has no arm for time32 or time64, so the whole result fails with:

databricks: arrow row scanner unhandled type time64[ns]

The value is present in the Arrow batch. The failure is the scanner's type switch.

Reproducer, against a SQL warehouse:

SELECT TIME '09:15:00.123456'
rows, err := db.QueryContext(ctx, "SELECT TIME '09:15:00.123456'")
// err == nil
var dest any
ok := rows.Next()
err = rows.Scan(&dest)
// databricks: arrow row scanner unhandled type time64[ns]

Expected: a TIME value scans as a time-of-day (wall clock, no date and no location), and one unsupported column does not have to fail the result before any row is returned. DATE and TIMESTAMP already have arms in that switch https://docs.databricks.com/aws/en/sql/language-manual/data-types/time-type.

主要言語
Go
スター
53
フォーク
70
平均マージ
2日 12時間
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

databricks/databricks-sql-go のほかの issue

databricks/databricks-sql-go の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。