Some aggregation functions need ORDER BY clause
Los mantenedores suelen responder en 4 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
Línea de trabajo
Start by tracing how PRQL represents sort and aggregation through its compiler, then find the SQL generation tests for aggregate functions. Check how ordering is preserved when a relation is passed to an aggregation; done means the example emits json_agg(month || ': ' || total ORDER BY total) and relevant tests pass.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
let json_agg = func arr -> s"json_agg({arr})"
from invoices
sort total
aggregate (json_agg f"{month}: {total}")
(intention: I want a single row that is a json array, which contains "month: total" entries, sorted by total)
I think this PRQL should produce the following SQL:
SELECT
json_agg(month || ': ' || total ORDER BY total)
FROM invoices
The important bit is that json_agg has its column ORDERed BY total.
This is because from invoices | sort total produces a relation, ordered by total, so this ordering should be accounted by the aggregation function.
- Lenguaje dominante
- Rust
- Estrellas
- 10.9k
- Forks
- 261
- Merge medio
- 4 d 6 h
- PR fusionados (30 d)
- 78
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni 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 PRQL/prql
-
Underscore does not work as expectedPosiblemente ocupada @prql-bot la tomó hace 5 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
PRQL/prql#6518 · 1 comentario ·
Los mantenedores suelen responder en 4 días
-
prqlc Debug Report HTML Does Not Escape Source File Name, Enabling Stored XSS via PRQLC_DEBUG_LOGAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
PRQL/prql#6502 · 1 comentario ·
Los mantenedores suelen responder en 4 días
-
Add `.prql` to linguistAbiertofriendliness integrations
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
PRQL/prql#1636 · 2 comentarios · 2 reacciones ·
Los mantenedores suelen responder en 4 días
-
Bot temporarily unavailableAbiertotend-outage
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
PRQL/prql#6532 · 3 comentarios ·
Los mantenedores suelen responder en 4 días
-
Dependabot can't fix the zip alerts: connector_arrow pins a duckdb that needs zip 6Posiblemente ocupada @prql-bot la tomó hace 6 días. Abierto
Dificultad 4/5 1-2 días Aptitud para principiantes 12/100
PRQL/prql#6517 · 1 comentario ·
Los mantenedores suelen responder en 4 días
Issues similares
-
ai_p2
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ClickHouse/ClickHouse#130006 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
horizon-rust/horizon#12071 ·
Los mantenedores suelen responder en 1 día
-
bug priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
storytold/photocraft#12183 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
area:render needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
bherbruck/solvecraft#13138 ·
-
testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100