feat: add OpenLineage request logger extension#19107
Open
mshahid6 wants to merge 7 commits intoapache:masterfrom
Open
feat: add OpenLineage request logger extension#19107mshahid6 wants to merge 7 commits intoapache:masterfrom
mshahid6 wants to merge 7 commits intoapache:masterfrom
Conversation
...-emitter/src/main/java/org/apache/druid/extensions/openlineage/OpenLineageRequestLogger.java
Fixed
Show fixed
Hide fixed
| if (from == null) { | ||
| return; | ||
| } | ||
| if (from instanceof SqlIdentifier) { |
Check notice
Code scanning / CodeQL
Chain of 'instanceof' tests
added 4 commits
March 8, 2026 18:19
Add CTEs, deduplicated, and emits to resolve spellcheck errors
Fixes spellcheck error for openlineage-emitter compound word
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added
extensions-contrib/openlineage-emitteras a contrib extension that uses theRequestLoggerto transform and send lineage information to any OpenLineage-compatible API.For SQL queries, the SQL text is parsed with the Calcite parser to extract input datasources (FROM clauses, JOINs, CTEs) and output datasources (INSERT INTO). For native queries, table names are read from
DataSource.getTableNames(). Native sub-queries spawned by a SQL execution are deduplicated against the SQL-level event.Each event includes standard OpenLineage facets (
processing_engine,jobType,sql,errorMessage) and custom Druid facets (druid_query_contextwith user identity and query metadata,druid_query_statisticswith duration and bytes).Transport is configurable:
CONSOLE(default) logs JSON to the Druid log;HTTPPOSTs to an OpenLineage endpoint such as Marquez. Can be combined with other loggers via thecomposingprovider.This PR has: