Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions common/utils/src/main/resources/error/error-conditions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2832,6 +2832,12 @@
},
"sqlState" : "42602"
},
"INVALID_DESTINATION_WITH_MULTIPLE_FLOWS" : {
"message" : [
"Invalid destination <tableName> with multiple flows: <flows>."
],
"sqlState" : "42000"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we provide a more specific SQL state?

},
"INVALID_DRIVER_MEMORY" : {
"message" : [
"System memory <systemMemory> must be at least <minSystemMemory>.",
Expand Down Expand Up @@ -5028,6 +5034,12 @@
},
"sqlState" : "42710"
},
"PIPELINE_GRAPH_NOT_TOPOLOGICALLY_SORTED" : {
"message" : [
"Pipeline graph must be topologically sorted (flow <flowName> with unvisited input <inputName>)"
],
"sqlState" : "42000"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

},
"PIPELINE_SQL_GRAPH_ELEMENT_REGISTRATION_ERROR" : {
"message" : [
"<message>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ trait GraphValidations extends Logging {
.foreach {
case (dest, flows) =>
throw new AnalysisException(
"MATERIALIZED_VIEW_WITH_MULTIPLE_QUERIES",
"INVALID_DESTINATION_WITH_MULTIPLE_FLOWS",
Map(
"tableName" -> dest.unquotedString,
"queries" -> flows.map(_.identifier).mkString(",")
"flows" -> flows
.map(_.displayName)
.sorted
.mkString(", ")
)
)
}
Expand Down Expand Up @@ -150,7 +153,7 @@ trait GraphValidations extends Logging {
throw new AnalysisException(
"PIPELINE_GRAPH_NOT_TOPOLOGICALLY_SORTED",
Map(
"flowName" -> f.identifier.unquotedString,
"flowName" -> f.displayName,
"inputName" -> unvisitedInput.unquotedString
)
)
Expand Down