MINOR: Fix column lineage in export (#16167)

This commit is contained in:
Mayur Singal 2024-05-08 14:00:42 +05:30 committed by GitHub
parent 6af8918167
commit 5002527c19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -257,6 +257,7 @@ public class LineageRepository {
}
private String processColumnLineage(HashMap lineageMap) {
if (lineageMap.get("columns") != null) {
StringBuilder str = new StringBuilder();
Collection collection = (Collection<ColumnLineage>) lineageMap.get("columns");
@ -268,9 +269,9 @@ public class LineageRepository {
str.append(colLineage.get("toColumn"));
str.append(";");
}
// remove the last ;
return str.toString().substring(0, str.toString().length() - 1);
}
// remove the last ;
return str.toString().substring(0, str.toString().length() - 1);
}
return "";
}