Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Oracle: a sort by a list puts a null item first and a number before a text

Aperta
#95 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
databases

Direzione di ricerca

Start with drivine/cypher/sql/sql_cypher_compiler.py around line 3487, where the issue says the sort term is the JSON value itself, and compare the listed results with Neo4j’s ordering. The issue notes that the earlier subquery approach fails in some Oracle contexts, so investigate an Oracle-compatible way to match Cypher list ordering. Done means both examples order as shown for Neo4j, without the reported session or aggregate failures.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Port of liberation-data/drivine4j#205.

On Oracle, a sort by a list orders its items as Oracle's JSON orders them: a null item first, and a number before a text, where Cypher orders null last and a text before a number. UNWIND [[1, 2], [1, null], [1], [null], [0]] AS xs RETURN xs ORDER BY xs gives [null], [0], [1], [1, null], [1, 2] (Neo4j: [0], [1], [1, 2], [1, null], [null]), and UNWIND [[1, 'a'], [1, 2], ['a'], [1.5]] AS xs RETURN xs ORDER BY xs gives [1, 2], [1, 'a'], [1.5], ['a'] (Neo4j: ['a'], [1, 'a'], [1, 2], [1.5]).

Here the sort term is the JSON value itself (sortTerm, drivine/cypher/sql/sql_cypher_compiler.py:3487), as in drivine4j. drivine4j has no fix yet: a subquery over the list's items, which sorts these right, closes Oracle's session or fails beside an aggregate (see the drivine4j issue). The spec's two steps in "Sorted by a list" skip Oracle until it's fixed.

Lingua principale
Python
Stelle
1
Fork
0
Merge medio
1h 16m
PR unite (30g)
74

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di liberation-data/drivine-python

Tutte le issue di liberation-data/drivine-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.