Skip to content

Commit

Permalink
Reinstate error for invalid table/view info
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Grote <[email protected]>
  • Loading branch information
cmgrote committed Jan 28, 2025
1 parent fe5c8b1 commit 88dec07
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ abstract class AssetXformer(
"CONTAINER", Table.TYPE_NAME, View.TYPE_NAME, MaterializedView.TYPE_NAME -> {
current = trimWhitespace(row.getOrElse(ENTITY_NAME) { "" })
parent = getSQLHierarchyDetails(row, Schema.TYPE_NAME, entityQualifiedNameToType)
actualTypeName = entityQualifiedNameToType.getOrElse("${parent.uniqueQN}/$current") { typeName }
actualTypeName = entityQualifiedNameToType.getOrElse("${parent.uniqueQN}/$current") {
throw IllegalStateException("Could not find any table/view at: ${parent.uniqueQN}/$current")
}
}
Column.TYPE_NAME -> {
current = trimWhitespace(row.getOrElse(ColumnXformer.COLUMN_NAME) { "" })
Expand Down

0 comments on commit 88dec07

Please sign in to comment.