Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Read a list item past 32 KB by its place on Oracle without crashing the session over two rows

オープン
#279 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python, sql
領域
database

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

bug

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:

  • element at :554 builds the JSON_QUERY … RETURNING JSON read.
  • head/last are at :918-919.
  • split at :1164 builds the long list.
  • _through_text at :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.
主要言語
Python
スター
1
フォーク
0
平均マージ
1時間 21分
マージ済み PR(30日)
128

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

liberation-data/drivine-python のほかの issue

liberation-data/drivine-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。