Nasd_
New Contributor II

Hi Lou,

Thank you so much for your detailed and insightful response. It really helped clarify the intended architecture and the different APIs (DeltaLog vs. DeltaTable).

I'm trying to programmatically access the low-level Delta Lake APIs by passing throught the java gateway (spark._jvm).

I have run into a persistent issue and, after extensive debugging, I believe it might be specific to this new runtime environment. I would appreciate any insight the community could offer.

Here is a summary of my investigation so far:

  1. Initial Goal: My objective is to get a DeltaLog object in PySpark by calling the underlying JVM class: spark._jvm.org.apache.spark.sql.delta.DeltaLog

  2. The Core Problem: Every attempt to reference this class fails with the following clear error message:

     Py4JError: org.apache.spark.sql.delta.DeltaLog does not exist in the JVM
  3. Debugging Steps Taken:

    • Explicit Maven Install: Since the error indicates the class is not on the classpath, I tried to force its installation directly onto the cluster. I went to the cluster's "Libraries" tab and installed the correct Maven coordinates for DBR 16.4 (which uses Delta 4.0 and Scala 2.12):io.delta:delta-spark_2.13:4.0.0
    • Result: Despite the library showing as "Installed" and after multiple cluster restarts, the exact same Py4JError: ...does not exist in the JVM error persists.

Has the package or class name for DeltaLog been changed or refactored in Delta 4.0 in a way that is not yet documented?

Thank you.