Skip to content

Show lineage features as on & provide information on required permissions - #239

Merged
ayush-shah merged 4 commits into
open-metadata:mainfrom
exasol:fix/238_fix_exasol_documentation_for_lineage
May 26, 2026
Merged

ayush-shah merged 4 commits into
open-metadata:mainfrom
exasol:fix/238_fix_exasol_documentation_for_lineage

Conversation

@ArBridgeman

Copy link
Copy Markdown
Contributor

closes #238

@ayush-shah

Copy link
Copy Markdown
Member

Thanks for adding the Exasol lineage permission notes. I validated the feature flag against the connector source, and lineage support itself looks real: the Exasol service spec wires ExasolLineageSource.

One detail looks inconsistent with the code path, though. The new text says OpenMetadata queries EXA_STATISTICS.EXA_DBA_AUDIT_SQL and that the user needs SELECT ANY DICTIONARY, but the connector query reads EXA_DBA_AUDIT_SQL and joins EXA_DBA_AUDIT_SESSIONS, and the test-connection metadata asks for select privileges on EXA_DBA_AUDIT_SQL. I could not find EXA_STATISTICS.EXA_DBA_AUDIT_SQL or SELECT ANY DICTIONARY in the Exasol connector path.

Could we update the permission wording to match the actual Exasol objects/grants required by the connector, including EXA_DBA_AUDIT_SESSIONS if that join also requires explicit access? That will make the setup instructions copy-pasteable for users enabling lineage.

@ArBridgeman

ArBridgeman commented May 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks for adding the Exasol lineage permission notes. I validated the feature flag against the connector source, and lineage support itself looks real: the Exasol service spec wires ExasolLineageSource.

One detail looks inconsistent with the code path, though. The new text says OpenMetadata queries EXA_STATISTICS.EXA_DBA_AUDIT_SQL and that the user needs SELECT ANY DICTIONARY, but the connector query reads EXA_DBA_AUDIT_SQL and joins EXA_DBA_AUDIT_SESSIONS, and the test-connection metadata asks for select privileges on EXA_DBA_AUDIT_SQL. I could not find EXA_STATISTICS.EXA_DBA_AUDIT_SQL or SELECT ANY DICTIONARY in the Exasol connector path.

Could we update the permission wording to match the actual Exasol objects/grants required by the connector, including EXA_DBA_AUDIT_SESSIONS if that join also requires explicit access? That will make the setup instructions copy-pasteable for users enabling lineage.

Thanks for the feedback! Both the EXA_DBA_AUDIT_SQL and EXA_DBA_AUDIT_SESSIONS are system tables inside of the schema EXA_STATISTICS. For the user to access the tables, they will need the SELECT ANY DICTIONARY system privilege or the DBA role. In this case, the SELECT ANY DICTIONARY system privilege is the better primary recommendation to follow the principle of least privilege.

Users who lack the system privilege would not be able to use SELECT on the tables.

@ArBridgeman

ArBridgeman commented May 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Summary

So I double-checked this in my local openmetadata with a basic user.

CREATE USER audit_reader IDENTIFIED BY "StrongPassword123";
GRANT CREATE SESSION TO audit_reader;

I'm working on a PR for another feature in the Exasol connector, and I can update the error text so it's clearer how to resolve it, as I agree that this is not sufficient information. However, I'd argue that the check result (failing) is as expected, as the user lacks the system privileges needed to access these tables. If there's something beyond the text that should be modified, please let me know.

image

Further Details

GRANT SELECT ON EXA_DBA_AUDIT_SQL TO audit_reader;
--- returns SQL Error [42500]: EXA_DBA_AUDIT_SQL is not modifiable (Session: 1865694034563694592)
GRANT SELECT ANY DICTIONARY TO audit_reader;
image

@ayush-shah

Copy link
Copy Markdown
Member

Hi @ArBridgeman 👋
Appreciate you checking this against a local Exasol instance. I checked the Exasol docs as well, and your explanation makes sense: EXA_STATISTICS is integrated into the namespace, and EXA_DBA_* system tables require SELECT ANY DICTIONARY, so the privilege recommendation looks correct.

The only small doc refinement I still see is that the connector query joins both EXA_DBA_AUDIT_SQL and EXA_DBA_AUDIT_SESSIONS, while the current text only mentions EXA_DBA_AUDIT_SQL. Could we phrase this as querying the Exasol audit system tables, for example EXA_STATISTICS.EXA_DBA_AUDIT_SQL joined with EXA_STATISTICS.EXA_DBA_AUDIT_SESSIONS?

The test-connection error text sounds fine to handle in your follow-up connector PR.

@ArBridgeman

Copy link
Copy Markdown
Contributor Author

Hi @ArBridgeman 👋 Appreciate you checking this against a local Exasol instance. I checked the Exasol docs as well, and your explanation makes sense: EXA_STATISTICS is integrated into the namespace, and EXA_DBA_* system tables require SELECT ANY DICTIONARY, so the privilege recommendation looks correct.

The only small doc refinement I still see is that the connector query joins both EXA_DBA_AUDIT_SQL and EXA_DBA_AUDIT_SESSIONS, while the current text only mentions EXA_DBA_AUDIT_SQL. Could we phrase this as querying the Exasol audit system tables, for example EXA_STATISTICS.EXA_DBA_AUDIT_SQL joined with EXA_STATISTICS.EXA_DBA_AUDIT_SESSIONS?

The test-connection error text sounds fine to handle in your follow-up connector PR.

Hi @ayush-shah ,

That's a great point about mentioning both tables. Before your latest comment, I had updated the documentation in this PR with those changes, as well as a link to Exasol documentation. Can you double-check? You might need to refresh the page; we've noticed in our team that GitHub has been buggier today, though their status page hasn't mentioned much.

@ayush-shah

Copy link
Copy Markdown
Member

One process concern before merge: this directly changes generated docs-om Exasol pages, but I could not find a corresponding open docs-collate source PR for the same Exasol lineage/permissions content.

Can you either point to the source-doc PR/change this was generated from, or move/apply the update in docs-collate first and regenerate docs-om from that source? Otherwise this docs-om-only change may drift from, or be overwritten by, the source docs.

@ArBridgeman

ArBridgeman commented May 22, 2026 •

Copy link
Copy Markdown
Contributor Author

One process concern before merge: this directly changes generated docs-om Exasol pages, but I could not find a corresponding open docs-collate source PR for the same Exasol lineage/permissions content.

Can you either point to the source-doc PR/change this was generated from, or move/apply the update in docs-collate first and regenerate docs-om from that source? Otherwise this docs-om-only change may drift from, or be overwritten by, the source docs.

@ayush-shah Thanks, there isn't a source PR on docs-collate. I'm not seeing a repository of that name in https://github.com/open-metadata beyond the docs-collate-legacy. Can you please point me to the correct repository URL and any additional documentation I should be aware of?

If I'm correctly interpreting the Contribution docs, it might be that something is out of date in the process described there: https://docs.open-metadata.org/v1.12.x/developers/contribute/developing-a-new-connector/update-documentation

@ayush-shah
ayush-shah merged commit 797efe3 into open-metadata:main May 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix the Exasol documentation

2 participants