[
https://issues.apache.org/jira/browse/SPARK-27484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17209755#comment-17209755
]
Dongjoon Hyun edited comment on SPARK-27484 at 10/7/20, 6:17 PM:
-----------------------------------------------------------------
It seems that [~kabhwan] also hits this issue and documents it in his
SPARK-32896 PR like the following.
-
https://github.com/apache/spark/pull/29767/files#diff-d35e8fce09686073f81de598ed657de7R314-R319
{code}
// Currently we don't create a logical streaming writer node in logical plan,
so cannot rely
// on analyzer to resolve it. Directly lookup only for temp view to provide
clearer message.
// TODO (SPARK-27484): we should add the writing node before the plan is
analyzed.
if
(df.sparkSession.sessionState.catalog.isTempView(originalMultipartIdentifier)) {
throw new AnalysisException(s"Temporary view $tableName doesn't support
streaming write")
}
{code}
was (Author: dongjoon):
It seems that [~kabhwan] also hits this issue and documents it in his
SPARK-32896 PR like the following.
-
https://github.com/apache/spark/pull/29767/files#diff-d35e8fce09686073f81de598ed657de7R314-R319
{code}
// Currently we don't create a logical streaming writer node in logical
plan, so cannot rely
// on analyzer to resolve it. Directly lookup only for temp view to
provide clearer message.
// TODO (SPARK-27484): we should add the writing node before the plan is
analyzed.
if
(df.sparkSession.sessionState.catalog.isTempView(originalMultipartIdentifier)) {
throw new AnalysisException(s"Temporary view $tableName doesn't
support streaming write")
}
{code}
> Create the streaming writing logical plan node before query is analyzed
> -----------------------------------------------------------------------
>
> Key: SPARK-27484
> URL: https://issues.apache.org/jira/browse/SPARK-27484
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.1.0
> Reporter: Wenchen Fan
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]