Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
y-bruin committed Jan 31, 2025
1 parent 234d16f commit 694c47b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/pipeline/lineage.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ func (p *LineageExtractor) processLineageColumns(foundPipeline *Pipeline, asset
}

tableSpec := strings.Split(upstream.Table, ".")
table_name := tableSpec[len(strings.Split(upstream.Table, "."))-1]
upstreamAsset := foundPipeline.GetAssetByName(table_name)

upstreamAsset := foundPipeline.GetAssetByName(tableSpec[len(tableSpec)-1])
if upstreamAsset == nil && upstream.Table != "" {
if err := p.addColumnToAsset(asset, lineageCol.Name, nil, &Column{
Name: upstream.Column,
Expand All @@ -202,7 +202,7 @@ func (p *LineageExtractor) processLineageColumns(foundPipeline *Pipeline, asset
Upstreams: []*UpstreamColumn{
{
Column: upstream.Column,
Table: strings.ToLower(table_name),
Table: strings.ToLower(tableSpec[len(tableSpec)-1]),
},
},
}); err != nil {
Expand Down

0 comments on commit 694c47b

Please sign in to comment.