Skip to content

Commit

Permalink
Flink refine jdbc table name (OpenLineage#2512)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenqiu Huang <huangzhenqiu0825@gmail.com>
Signed-off-by: Ruihua Wang <ruihuawang@microsoft.com>
  • Loading branch information
HuangZhenQiu authored and Ruihua98 committed Mar 15, 2024
1 parent ece44ec commit 721d9a3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ public Optional<String> getTableName() {

return queryOpt
.flatMap(query -> OpenLineageSql.parse(List.of(query)))
.map(sqlMeta -> sqlMeta.inTables().isEmpty() ? "" : sqlMeta.inTables().get(0).name());
.map(
sqlMeta ->
sqlMeta.inTables().isEmpty() ? "" : sqlMeta.inTables().get(0).qualifiedName());
}

private Optional<JdbcConnectionOptions> getConnectionOptions() {
Expand Down

0 comments on commit 721d9a3

Please sign in to comment.