MSSQL connector fails to preview or import tables containing a `TIMESTAMP`/`ROWVERSION` column
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 75/100
調査の方向性
Locate the MSSQL connector code that generates SELECT queries for table preview and import. The error shows the connector implicitly converts TIMESTAMP/ROWVERSION to nvarchar(max), which SQL Server forbids. Modify the query generation to handle this data type—cast to VARBINARY or skip the conversion. Test with the reproduction table to confirm the fix.
索引モデルが issue の本文から書いたものです。
説明
Environment
- Microsoft Data Formulator running in Docker
- Ubuntu Server 24.04
- Microsoft SQL Server 2022
- MSSQL Python driver (
mssql_python, as shown in the application log)
Description
When I try to preview or import a SQL Server table that contains a TIMESTAMP column, the operation fails. In SQL Server, TIMESTAMP is a synonym for ROWVERSION—it stores a binary row version, not a date or time.
Minimal reproduction
CREATE TABLE dbo.Repro (
Id int NOT NULL PRIMARY KEY,
RowVersionColumn timestamp NOT NULL,
SysStartTime datetime2(7) GENERATED ALWAYS AS ROW START NOT NULL,
SysEndTime datetime2(7) GENERATED ALWAYS AS ROW END NOT NULL,
PERIOD FOR SYSTEM_TIME (SysStartTime, SysEndTime)
)
WITH (
SYSTEM_VERSIONING = ON (
HISTORY_TABLE = dbo.ReproHistory
)
);
- Connect Data Formulator to the SQL Server database.
- Select
dbo.Repro. - Try to preview or import the table.
Expected behavior
The table should be previewed and imported successfully, with the ROWVERSION column handled as binary data or otherwise handled safely.
Actual behavior
Both preview and import fail with a data-load error. The SQL Server driver reports:
Invalid character value for cast specification;
[Microsoft][SQL Server] Explicit conversion of the timestamp data type
to nvarchar(max) is not allowed.
The error occurs while executing the generated SELECT query.
- 主要言語
- Python
- スター
- 17.7k
- フォーク
- 1.7k
- 平均マージ
- 4日 1時間
- マージ済み PR(30日)
- 8
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/data-formulator のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
microsoft/data-formulator#513 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/data-formulator#520 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
microsoft/data-formulator#519 ·
メンテナーはふだん 2 日以内に返信
-
Data table is emptyオープン
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
microsoft/data-formulator#518 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
microsoft/data-formulator#517 ·
メンテナーはふだん 2 日以内に返信
microsoft/data-formulator の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bytedance/agentkit-samples#277 ·
-
ai-driven-fuzzing bug claude Minor
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 2 日以内に返信
-
channels:edit check:passed
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
[Bug] The blue-green mitigation strategy lists catalog names and views before the source tablesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
aws-samples/sample-aws-genai-db-modernizer#2097 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信