Skip to content

[bug] Databricks connection issue when username include a dot #710

@jeannicolasfine

Description

@jeannicolasfine

Problem

Users with a dot in their OS username (e.g. john.doe) get a UC_VOLUME_NOT_FOUND error when connecting to Databricks:

[UC_VOLUME_NOT_FOUND] Volume `catalog`.`schema`.`john`.`doe-py=3124-pid=98765` does not exist.

Ibis builds the memtable_volume name as {getpass.getuser()}-py={version}-pid={pid}. When the username contains a dot, Databricks Unity Catalog interprets it as a path separator, producing an invalid 4-part identifier instead of a valid 3-part one.

Proposition Solution

Sanitize the username before constructing the volume name by replacing any character outside [a-zA-Z0-9_-] with an underscore, then pass the result explicitly as memtable_volume to ibis.databricks.connect().
See: #709

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions