Skip to content

[Bug] DataSource V2 table extraction fails for MongoDB #7230

@moelhoussein

Description

@moelhoussein

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

Describe the bug

For MongoDB, the table extractor fails to produce meaningful (database, table) identifiers. It relies on DataSourceV2Relation.identifier or table.name, which are empty, path-like, or non-semantic for these connectors. As a result, Ranger resources are misidentified and policies do not match.

DataSource V2 connectors encode logical identifiers in table.properties, not in identifier/table.name. The extractor didn’t read connector-specific properties.

Affects Version(s)

master

Kyuubi Server Log Output

N/A

Kyuubi Engine Log Output

Exception in thread "main" org.apache.kyuubi.plugin.spark.authz.AccessControlException: Permission denied: user [JOB-USER] does not have [update] privilege on [MongoTable()]

Kyuubi Server Configurations

Kyuubi Engine Configurations

Additional context

No response

Are you willing to submit PR?

  • Yes. I would be willing to submit a PR with guidance from the Kyuubi community to fix.
  • No. I cannot submit a PR at this time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions