-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openlineage, common.sql: provide OL SQL parser as internal OpenLineag…
…e provider API (#31398) * Add SQLParser class serving as the API for openlineage_sql library. Implement base methods for SQLExecuteQueryOperator & DbApiHook. Signed-off-by: Jakub Dardzinski <[email protected]> Rename methods to expose their purpose for OpenLineage. Signed-off-by: Jakub Dardzinski <[email protected]> * Rewrite information schema query construction to SQLALchemy ORM. Signed-off-by: Jakub Dardzinski <[email protected]> * Clean up in-class reference Instead of referencing the SQLParser directly, modify various static methods to class methods instead, so they can use the cls argument to avoid spelling out the class name repeatedly. Also added a few changes to better ultilize type reference and eliminate some verbose type annotations. * Clean up typing and iterator usage * Add static typing to hint returned type. Signed-off-by: Jakub Dardzinski <[email protected]> * Fix mypy issues. Signed-off-by: Jakub Dardzinski <[email protected]> --------- Signed-off-by: Jakub Dardzinski <[email protected]> Co-authored-by: Tzu-ping Chung <[email protected]>
- Loading branch information
1 parent
e2e707c
commit f2e2125
Showing
11 changed files
with
1,271 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.