Skip to content

[BUG] 4.0.0 build has undefined exceptions import #5370

@tigerhawkvok

Description

@tigerhawkvok

Bug

Describe the problem

Import of exceptions fail

Steps to reproduce

Either will fail:

from delta.exceptions import ConcurrentAppendException
from delta.connect.exceptions import ConcurrentAppendException

Observed results

from delta.connect.exceptions import ConcurrentAppendException, ConcurrentTransactionException, ConcurrentWriteException # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[...]\.venv\Lib\site-packages\delta\connect\exceptions.py", line 22, in <module>
    from delta.exceptions.base import (
ModuleNotFoundError: No module named 'delta.exceptions'

Expected results

not to fail

Further Details

[[packages]]
name = "delta-spark"
version = "4.0.0"
index = "https://pypi.org/simple"
sdist = { url = "https://files.pythonhosted.org/packages/22/fd/37a0c2ee6fbf4dcbf034178dcb978ba586d37dc9c95214b90416d1042735/delta-spark-4.0.0.tar.gz", upload-time = 2025-06-06T01:41:46Z, size = 35026, hashes = { sha256 = "39325d76d6e5d8b5fea9d47827c59f5e0674844cb95f97b2cc613bfc5209c7ec" } }
wheels = [{ url = "https://files.pythonhosted.org/packages/3b/d8/265a93d22ae79262cdff701496a6f5676926a342153f3855ae6060430660/delta_spark-4.0.0-py3-none-any.whl", upload-time = 2025-06-06T01:41:44Z, size = 39756, hashes = { sha256 = "4e4ded07bb9ee4f6a0df45606d84395239d4b82001e765a627fecc1e914f3029" } }]

Environment information

  • Spark version: Any

Willingness to contribute

The Delta Lake Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the Delta Lake code base?

  • Yes. I can contribute a fix for this bug independently.
  • Yes. I would be willing to contribute a fix for this bug with guidance from the Delta Lake community.
  • No. I cannot contribute a bug fix at this time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions