Support variable window aggregation through ODFV

Abierto
#6,308 3 comentarios 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
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
cassandra, python

Línea de trabajo

Empieza rastreando la API existente de on-demand feature view, incluida su fuente de datos sin procesar y el manejo de Field y Aggregation. Compara cómo se validan y persisten actualmente las agregaciones de ventana variable y, a continuación, determina dónde un input_schema opcional puede reemplazar la fuente sin procesar. Se considera terminado cuando el ejemplo proporcionado funciona sin una fuente ficticia y admite la lectura y escritura de los datos de agregación.

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

Descripción

kind/feature

Is your feature request related to a problem? Please describe.
Currently, feast supports dynamic aggregation through ODFV from raw data source. For variable window aggregation, the features are independently computed so there is no raw source but aggregation is still being read / written.

Describe the solution you'd like
We want to allow users to not define raw data source but instead replace data source with new optional input_schema field to define raw data input type. For example, instead of passing in txn_amount from external feature view, it is submitted as input_schema. See example below:

@on_demand_feature_view(
      input_schema=[
          Field(name="txn_amount", dtype=Float64),
      ],
      schema=[
          Field(name="txn_count", dtype=Int64),
          Field(name="total_txn_amount", dtype=Float64),
          Field(name="avg_txn_amount", dtype=Float64),
      ],
      aggregations=[
          Aggregation(column="txn_amount", function="count", name="txn_count",
                      window=timedelta(days=30)),
          Aggregation(column="txn_amount", function="sum", name="total_txn_amount",
                      window=timedelta(days=30)),
          Aggregation(column="txn_amount", function="mean", name="avg_txn_amount",
                      window=timedelta(days=30)),
      ],
      entities=[user],
      write_to_online_store=True,
  )

This allows dynamic systems like cassandra or iceberg that support time series data representations, to support variable window engines which support writing and reading to / from same source.

Describe alternatives you've considered
Using dummy source (confusing, needlessly complex), using aggregation on feature view (not supported)

Lenguaje dominante
Python
Estrellas
7.4k
Forks
1.5k
Merge medio
2 d 6 h
PR fusionados (30 d)
107

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 feast-dev/feast

Todos los issues de feast-dev/feast

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.