Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#95 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
databases

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
1
Fork
0
Merge trung bình
1 giờ 10 phút
Pull request đã merge (30 ngày)
88

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của liberation-data/drivine-python

Tất cả issue của liberation-data/drivine-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.