OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Assets not visible for "Child Columns" (1.1)

Open DovileKr opened this issue 3 years ago • 6 comments

Affected module Glossary

Describe the bug

  1. I have a table. A column of STRUCT type has 2 child columns
  2. I have tagged the table, the primary column and the child columns with Glossary terms

ONLY the Glossary Terms tagging the Table and Primary Column, display Asset Info on the Glossary Term page.

To Reproduce

  1. Create a table with child columns.
  2. Tag with Glossary Terms the table, the Parent and the Children
  3. Check which terms display Asset

{ "name": "Parent", "dataType": "STRUCT", "dataLength": 10, "dataTypeDisplay": "struct", "description": "Customer Number. Explicit search help attachment to field ", "fullyQualifiedName": "testcc.ECC.LO.KNA1.Parent", "constraint": "NOT_NULL", "ordinalPosition": 3, "children": [ { "name": "Child", "dataType": "CHAR", "dataLength": 10, "description": "child", "fullyQualifiedName": "testcc.ECC.LO.KNA1.Parent.Child", "constraint": "NOT_NULL", "ordinalPosition": 1 }, { "name": "GrandChild", "dataType": "CHAR", "dataLength": 10, "description": "grandchild", "fullyQualifiedName": "testcc.ECC.LO.KNA1.Parent.GrandChild", "constraint": "NOT_NULL", "ordinalPosition": 2 } ] }

Expected behavior All terms used for tagging columns / tables should show asset

Version:

  • OS: [e.g. iOS]
  • Python version:
  • OpenMetadata version: [e.g.1.0]
  • OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ]

Additional context Add any other context about the problem here.

DovileKr avatar Jul 12 '23 13:07 DovileKr

Parent term tagged to column = shows asset GrandParent term tagged to child column, assets 0

image

DovileKr avatar Jul 13 '23 08:07 DovileKr

still a problem for 1.1

DovileKr avatar Jul 21 '23 07:07 DovileKr

Hi, do we have a roadmap fix for this bug?

DovileKr avatar Aug 03 '23 09:08 DovileKr

@DovileKr would be part of 1.1.2 @07Himank currently the ES query for column.children will go into one level of depth we need to find a better operator. Previously we used to merge all levels of column names into a single array and index it. So that we can look it up using column_array.

harshach avatar Aug 11 '23 19:08 harshach

@harshach still not there for 1.1.3, yes?

Example out of Sandbox: https://sandbox.open-metadata.org/table/BigQueryProd.modified-leaf-330420.sdoh_cms_dual_eligible_enrollment.nested_struct

tagged struct column with https://sandbox.open-metadata.org/glossary/Lead.lead_address_city, but no assets is shown.

DovileKr avatar Aug 31 '23 06:08 DovileKr

https://github.com/open-metadata/OpenMetadata/pull/13539 this will fix thie issue

07Himank avatar Oct 13 '23 13:10 07Himank