-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[SPARK-52759][SDP][SQL] Throw exception if pipeline has no tables or persisted views #51445
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
Changes from all commits
2a2747e
4d16efc
9cf82ca
13d2749
d44fb1a
082fca8
fc682c6
40c323c
c5e4cea
20c0c50
ff840d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,13 @@ class GraphRegistrationContext( | |
} | ||
|
||
def toDataflowGraph: DataflowGraph = { | ||
if (tables.isEmpty && views.collect { case v: PersistedView => | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In theory it's possible for a user to define a standalone flow in their source code, but no table. Should we throw an exception in that case, or is a good exception already thrown elsewhere for that case? Would be nice to write a test for this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added tests here. |
||
v | ||
}.isEmpty) { | ||
throw new AnalysisException( | ||
errorClass = "RUN_EMPTY_PIPELINE", | ||
messageParameters = Map.empty) | ||
} | ||
val qualifiedTables = tables.toSeq.map { t => | ||
t.copy( | ||
identifier = GraphIdentifierManager | ||
|
Uh oh!
There was an error while loading. Please reload this page.