Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #3051: Glossary-term suggest api has fqdn same as name #3052

Merged
merged 1 commit into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ public static GlossaryTermESIndexBuilder builder(GlossaryTerm glossaryTerm, Even
.name(glossaryTerm.getName())
.displayName(displayName)
.description(description)
.fqdn(glossaryTerm.getName())
.fqdn(glossaryTerm.getFullyQualifiedName())
.glossaryId(glossaryTerm.getGlossary().getId().toString())
.glossaryName(glossaryTerm.getGlossary().getName())
.lastUpdatedTimestamp(updatedTimestamp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"owner": {
"type": "keyword"
},
"fqdn": {
"type": "keyword"
},
"last_updated_timestamp": {
"type": "date",
"format": "epoch_second"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ class GlossaryTermESDocument(BaseModel):
entity_type: str = "glossaryTerm"
name: str
display_name: str
fqdn: str
description: str
glossary_name: str
glossary_id: str
Expand Down
3 changes: 1 addition & 2 deletions ingestion/src/metadata/ingestion/sink/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
import json
import logging
import ssl
import time
import traceback
from datetime import datetime
from typing import List, Optional

from dateutil import parser
from elasticsearch import Elasticsearch
from elasticsearch.connection import create_ssl_context

Expand Down Expand Up @@ -578,6 +576,7 @@ def _create_glossary_term_es_doc(self, glossary_term: GlossaryTerm):
deleted=glossary_term.deleted,
name=glossary_term.name.__root__,
display_name=glossary_term.displayName,
fqdn=glossary_term.fullyQualifiedName,
description=glossary_term.description,
glossary_id=str(glossary_term.glossary.id.__root__),
glossary_name=glossary_term.glossary.name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,9 @@
"display_name": {
"type": "text"
},
"fqdn": {
"type": "keyword"
},
"owner": {
"type": "keyword"
},
Expand Down