Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Add a new TimeUnit for dotnet ticks

Abierto
#246 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
csharp
Área
data

Línea de trabajo

Comience revisando las opciones existentes de TimeUnit y las rutas de conversión de TimestampType para C# DateTimeOffset. Determine las implicaciones entre ecosistemas de añadir una unidad de tick de 100 nanosegundos y defina el comportamiento de compatibilidad y serialización que constituiría una propuesta completa.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the enhancement requested

When serializing a DateTimeOffset into an Arrow type, the TimestampType feels like a natural choice. However there is no time unit which fully represents both the precision and range of a C# DateTimeOffset. A DateTimeOffset tick is 100 nanoseconds long and the full range of representable values is between years 0001 and 9999 according to the documentation.

There are currently 2 options for TimeUnit when converting a C# DateTimeOffset to TimestampType

  • TimeUnit.Microseconds : Lose precision but be able to fully convert every valid DateTimeOffset to Timestamp
  • TimeUnit.Nanoseconds : Keep precision, but the range of representable calendar years is reduced to 1677 - 2262

Of course, users could serialize DateTimeOffset into a long in the Arrow Table and remember the type when deserializing. However, it would be nice to preserve the type information. Having a new TimeUnit equal to a tick would solve this tension.

I appreciate that adding a new time unit would be a fundamental change to arrow across more than just the .NET ecosystem, please let me know if this has been considered before or if the discussion needs to be moved elsewhere.

Lenguaje dominante
C#
Estrellas
42
Forks
31
Merge medio
1 d 1 h
PR fusionados (30 d)
24

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/arrow-dotnet

Todos los issues de apache/arrow-dotnet

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.