mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-27 16:55:06 +00:00
Column tag glossary export (#20858)
* Column tags/ glossary not importing bug fic * Column tags/ glossary not importing bug fix --------- Co-authored-by: Ashish Gupta <ashish@getcollate.io>
This commit is contained in:
parent
21bfa65013
commit
c092735fce
@ -28,6 +28,7 @@ import java.util.ArrayList;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.csv.CSVPrinter;
|
||||
@ -315,7 +316,7 @@ public class DatabaseRepository extends EntityRepository<Database> {
|
||||
for (Table table : tables) {
|
||||
// Add the table entity
|
||||
addEntityToCSV(csvFile, table, TABLE);
|
||||
|
||||
tableRepository.setFieldsInternal(table, new Fields(Set.of("columns", "tags")));
|
||||
// Add all columns as separate rows
|
||||
tableRepository.exportColumnsRecursively(table, csvFile);
|
||||
}
|
||||
|
||||
@ -30,6 +30,7 @@ import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.csv.CSVPrinter;
|
||||
@ -210,6 +211,8 @@ public class DatabaseSchemaRepository extends EntityRepository<DatabaseSchema> {
|
||||
tableRepository.listAllForCSV(
|
||||
tableRepository.getFields("owners,tags,domain,extension"),
|
||||
schema.getFullyQualifiedName());
|
||||
tables.forEach(
|
||||
table -> tableRepository.setFieldsInternal(table, new Fields(Set.of("columns", "tags"))));
|
||||
tables.sort(Comparator.comparing(EntityInterface::getFullyQualifiedName));
|
||||
|
||||
// Get stored procedures under this schema
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user