Skip to content

Cache reflection method lookups in Spark engine - #7653

Open
pan3793 wants to merge 2 commits into
apache:masterfrom
pan3793:kyuubi-rowset-bound-method
Open

Cache reflection method lookups in Spark engine#7653
pan3793 wants to merge 2 commits into
apache:masterfrom
pan3793:kyuubi-rowset-bound-method

Conversation

@pan3793

@pan3793 pan3793 commented Aug 24, 2026

Copy link
Copy Markdown
Member

Why are the changes needed?

Repeated DynMethods lookups occur on hot paths for Hive result serialization, Spark UI rendering, and URI construction. This caches the resolved methods so reflection lookup happens once instead of on every call.

How was this patch tested?

  • dev/reformat
  • build/mvn test -pl externals/kyuubi-spark-sql-engine -am -Dtest=none -DwildcardSuites=org.apache.kyuubi.engine.spark.schema.RowSetSuite
  • build/mvn test -pl externals/kyuubi-spark-sql-engine -am -Dtest=none -DwildcardSuites=org.apache.kyuubi.engine.spark.KyuubiSparkUtilSuite
  • build/mvn test -Pspark-4.0 -Pscala-2.13 -pl externals/kyuubi-spark-sql-engine -am -Dtest=none -DwildcardSuites=org.apache.kyuubi.engine.spark.KyuubiSparkUtilSuite

Was this patch authored or co-authored using generative AI tooling?

Yes. Assisted-by: GLM 5.3

@pan3793 pan3793 self-assigned this Aug 24, 2026
@pan3793 pan3793 added this to the v1.10.4 milestone Aug 24, 2026
@pan3793
pan3793 requested a review from wForget August 24, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant