[CORE] Selecting a cost model the backend has no coster for fails with ClassNotFoundException

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

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

@LuciferYang がすでに取り組んでいます。

2026年11月20日 から。

  • #13701 @LuciferYang による — オープン

評価

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

調査の方向性

GlutenCostModel.find から始めてください。このメソッドは未知の名前をクラス名として扱います。次に LongCostModel.Kind.values() と LongCostModel.Registry.get を確認してください。ClickHouse バックエンドと spark.gluten.costModel=rough で再現してください。修正では、未登録のコストモデルを検索時に拒否し、エラーメッセージに設定名を含めるべきです。未知の kind と空の coster チェーンを扱う Scala テストを追加または更新してください。検索時に明確なメッセージとともに失敗すれば完了です。

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

説明

When spark.gluten.costModel names a built-in cost model that the backend registers no coster for, the error does not say so. The ClickHouse backend only registers LegacyCoster, so the rough kind is never initialized and is missing from LongCostModel.Kind.values(). Setting spark.gluten.costModel=rough there makes GlutenCostModel.find treat rough as a class name and fail with ClassNotFoundException: rough. Even when the kind is known, LongCostModel.Registry.get returns an empty coster chain, and the failure only surfaces later as Cost not found for node: ....

Gluten could reject such a cost model when it is looked up and name the config.

This issue was written with the assistance of AI (Claude Opus).

主要言語
Scala
スター
1.6k
フォーク
679
平均マージ
4日 16時間
マージ済み PR(30日)
84

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

apache/gluten のほかの issue

apache/gluten の issue をすべて見る

似ている issue

Scala の issue をもっと見る

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

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