Read a list item past 32 KB by its place on Oracle without crashing the session over two rows
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
- 68/100
Hướng nghiên cứu
Start with drivine/cypher/sql/oracle_cypher_compiler.py, especially element at line 554, head/last at 918–919, and _through_text at 538; compare the described Drivine4j fix. Port the cross-engine two-row contract test and the Oracle SQL test in OracleItemPropertyTest. Done means long text list items are read whole across three reads in one session, while Postgres, SQLite, and UNWIND behavior remain unchanged.
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#388.
What happens now. On Oracle, a list item read by its place is taken out as JSON_QUERY(list, '$[$i]' PASSING … AS "i" RETURNING JSON). If the item is a text longer than 32 KB and the statement returns two or more rows, the session crashes with ORA-03113 (ORA-00600 [17114] / ORA-07445 in the alert log). This is the same server bug as #255. These shapes all hit it: split(n.text, ',')[i], head/last of such a list, and an item of a stored list property (n.tags[0]).
At origin/main 4cf6083, in drivine/cypher/sql/oracle_cypher_compiler.py:
elementat :554 builds theJSON_QUERY … RETURNING JSONread.head/lastare at :918-919.splitat :1164 builds the long list._through_textat :538 is already there to reuse.
What the drivine4j fix does. It reads the item through the list's text where the item is a text:
CASE WHEN JSON_VALUE(l, '$[$i].type()' PASSING i AS "i") = 'string' THEN JSON(JSON_QUERY(JSON_SERIALIZE(l RETURNING CLOB), '$[$i]' PASSING i AS "i" RETURNING CLOB)) ELSE JSON_QUERY(l, '$[$i]' PASSING i AS "i" RETURNING JSON) END
head and last get the same form with '$[0]' and '$[last]'. throughText takes a path and an optional PASSING clause, and a private listItem helper uses it. UNWIND is left as it is, because JSON_TABLE's item is fine. Postgres and SQLite are unchanged.
Tests to port:
- The cross-engine contract test "a text past 32 KB that is an item of a list, read by its place on two rows, is read whole". It runs three times on one session.
- The Oracle SQL test "an item of a list read by its place is read through the list's text where it is a text", in OracleItemPropertyTest.
- Ngôn ngữ chính
- Python
- Star
- 1
- Fork
- 0
- Merge trung bình
- 1 giờ 21 phút
- Pull request đã merge (30 ngày)
- 128
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của liberation-data/drivine-python
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
liberation-data/drivine-python#250 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
liberation-data/drivine-python#209 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CI: three Oracle-only tests in test_cypher_compiled.py never run, as -k oracle doesn't select themĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
liberation-data/drivine-python#178 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
liberation-data/drivine-python#280 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
liberation-data/drivine-python#277 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của liberation-data/drivine-python
Issue tương tự
-
priority middle
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
KATO-Hiro/AtCoderClans#12940 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
huggingface/huggingface_hub#5283 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
ccxt/ccxt#31045 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug example
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày