MSSQL connector fails to preview or import tables containing a `TIMESTAMP`/`ROWVERSION` column
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 75/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 17.7k
- Forks
- 1.7k
- Merge medio
- 4 d 1 h
- PR fusionados (30 d)
- 8
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/data-formulator
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
microsoft/data-formulator#513 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
microsoft/data-formulator#520 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
microsoft/data-formulator#519 ·
Los mantenedores suelen responder en 2 días
-
Data table is emptyAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 50/100
microsoft/data-formulator#518 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
microsoft/data-formulator#517 ·
Los mantenedores suelen responder en 2 días
Todos los issues de microsoft/data-formulator
Issues similares
-
Edit: TVS Encarnacion [PY]Abiertochannels:edit check:passed
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
[Bug] The blue-green mitigation strategy lists catalog names and views before the source tablesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
aws-samples/sample-aws-genai-db-modernizer#2097 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
ietf-tools/datatracker#12027 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Python SDK overwrites OVPack backups with HTTP 200 JSON errorsPosiblemente ocupada @stefanielizeth73-art la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
volcengine/OpenViking#7347 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
deepset-ai/haystack-core-integrations#4228 ·
Los mantenedores suelen responder en 1 día