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

Theta preamble diagnostic misreports historical single-item images

オープン 初心者向け
#773 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
data

調査の方向性

theta.PreambleUtil.preambleToString() から始めて、1つのプリアンブル分の長さを持つ画像で CurrentCount がどのように導出されるかを調べます。提案されている単一アイテムのコンパクトスケッチシリアライゼーションを使用し、単一アイテムフラグだけをクリアして、SINGLE_ITEM: false を維持したまま診断結果が CurrentCount: 1 を報告することを確認します。また、空の画像が CurrentCount: 0 を報告することも確認します。

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

説明

Problem

theta.PreambleUtil.preambleToString() derives CurrentCount for one-preamble-long images from SINGLEITEM_FLAG_MASK.

Historical C++ single-item images may omit that flag. Java accepts those images because the theta parser deliberately does not depend on the flag, but the diagnostic output reports CurrentCount: 0 even though the image contains one retained item.

This was identified while resolving the cross-language differences tracked in apache/datasketches-cpp#460. Current C++ now writes the flag, but older valid images still expose the diagnostic mismatch.

Expected behavior

For a one-preamble-long theta image, derive the diagnostic count from the empty flag:

  • empty image: CurrentCount: 0
  • non-empty image: CurrentCount: 1

The printed SINGLE_ITEM field should continue to reflect the serialized flag itself.

Proposed test

Serialize a single-item compact sketch, clear only the single-item flag to model a historical C++ image, and verify that preambleToString() reports CurrentCount: 1 while preserving SINGLE_ITEM: false.

主要言語
Java
スター
958
フォーク
226
平均マージ
2日 7時間
マージ済み PR(30日)
14

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

apache/datasketches-java のほかの issue

apache/datasketches-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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