-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-52283][SQL] Declarative Pipelines DataflowGraph
creation and resolution
#51003
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
5e83f0d
573c0bf
1aa2253
249fc3a
a2c3b39
2c22e19
61e1000
d2effa2
676ee9d
af7842d
e0e4d13
22cbef2
71c69af
41a0600
d350dbf
777189f
4ac428c
d887aea
b4cbf08
6b20fa0
73a1df3
c09a644
a714d35
7e40fa8
ab007fe
5515167
54690c7
f4e3ecd
5927325
f310b4f
55ad0ab
e8185b9
5d53fd7
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 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -16,7 +16,8 @@ | |||||||||||||
~ limitations under the License. | ||||||||||||||
--> | ||||||||||||||
|
||||||||||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||||||||||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||||||||||||||
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. What's the difference from before? Can we not modify this line? |
||||||||||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||||||||||||||
<modelVersion>4.0.0</modelVersion> | ||||||||||||||
<parent> | ||||||||||||||
<groupId>org.apache.spark</groupId> | ||||||||||||||
|
@@ -40,7 +41,6 @@ | |||||||||||||
<groupId>org.apache.spark</groupId> | ||||||||||||||
<artifactId>spark-core_${scala.binary.version}</artifactId> | ||||||||||||||
<version>${project.version}</version> | ||||||||||||||
<scope>test</scope> | ||||||||||||||
</dependency> | ||||||||||||||
<dependency> | ||||||||||||||
<groupId>org.apache.spark</groupId> | ||||||||||||||
|
@@ -49,6 +49,78 @@ | |||||||||||||
<type>test-jar</type> | ||||||||||||||
<scope>test</scope> | ||||||||||||||
</dependency> | ||||||||||||||
<dependency> | ||||||||||||||
<groupId>org.apache.spark</groupId> | ||||||||||||||
<artifactId>spark-sql_${scala.binary.version}</artifactId> | ||||||||||||||
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. I changed Lines 39 to 44 in 5ef6d4b
and the Maven compilation passed. However, when I executed command
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. Investigating now 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. I looked into this more deeply. What appears to be happening is:
How does this work normally? There are several suites inside the repo that 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.
I made some modifications to 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. Thanks for all the attention you're giving on this. I independently converged on a similar solution actually. I'm still a little bit confused about how this works for other tests that create a I pushed this change though. Hopefully adding the 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. (I also pulled in the pom.xml and SparkBuild changes from the downstream PR) |
||||||||||||||
<version>${project.version}</version> | ||||||||||||||
</dependency> | ||||||||||||||
<dependency> | ||||||||||||||
<groupId>org.apache.spark</groupId> | ||||||||||||||
<artifactId>spark-catalyst_${scala.binary.version}</artifactId> | ||||||||||||||
<version>${project.version}</version> | ||||||||||||||
<type>test-jar</type> | ||||||||||||||
<scope>test</scope> | ||||||||||||||
</dependency> | ||||||||||||||
<dependency> | ||||||||||||||
<groupId>org.apache.spark</groupId> | ||||||||||||||
<artifactId>spark-sql_${scala.binary.version}</artifactId> | ||||||||||||||
<version>${project.version}</version> | ||||||||||||||
<type>test-jar</type> | ||||||||||||||
<scope>test</scope> | ||||||||||||||
</dependency> | ||||||||||||||
<dependency> | ||||||||||||||
<groupId>org.apache.spark</groupId> | ||||||||||||||
<artifactId>spark-sql-api_${scala.binary.version}</artifactId> | ||||||||||||||
<version>${project.version}</version> | ||||||||||||||
<type>test-jar</type> | ||||||||||||||
<scope>test</scope> | ||||||||||||||
<exclusions> | ||||||||||||||
<exclusion> | ||||||||||||||
<groupId>org.apache.spark</groupId> | ||||||||||||||
<artifactId>spark-connect-shims_${scala.binary.version}</artifactId> | ||||||||||||||
</exclusion> | ||||||||||||||
</exclusions> | ||||||||||||||
</dependency> | ||||||||||||||
<dependency> | ||||||||||||||
<groupId>org.scala-lang.modules</groupId> | ||||||||||||||
<artifactId>scala-parallel-collections_${scala.binary.version}</artifactId> | ||||||||||||||
</dependency> | ||||||||||||||
<dependency> | ||||||||||||||
<groupId>org.scalacheck</groupId> | ||||||||||||||
<artifactId>scalacheck_${scala.binary.version}</artifactId> | ||||||||||||||
<scope>test</scope> | ||||||||||||||
</dependency> | ||||||||||||||
<dependency> | ||||||||||||||
<groupId>org.mockito</groupId> | ||||||||||||||
<artifactId>mockito-core</artifactId> | ||||||||||||||
<scope>test</scope> | ||||||||||||||
</dependency> | ||||||||||||||
<dependency> | ||||||||||||||
<groupId>net.bytebuddy</groupId> | ||||||||||||||
<artifactId>byte-buddy</artifactId> | ||||||||||||||
<scope>test</scope> | ||||||||||||||
</dependency> | ||||||||||||||
<dependency> | ||||||||||||||
<groupId>net.bytebuddy</groupId> | ||||||||||||||
<artifactId>byte-buddy-agent</artifactId> | ||||||||||||||
<scope>test</scope> | ||||||||||||||
</dependency> | ||||||||||||||
<dependency> | ||||||||||||||
<groupId>org.apache.spark</groupId> | ||||||||||||||
<artifactId>spark-tags_${scala.binary.version}</artifactId> | ||||||||||||||
</dependency> | ||||||||||||||
|
||||||||||||||
<!-- | ||||||||||||||
This spark-tags test-dep is needed even though it isn't used in this module, otherwise testing-cmds that exclude | ||||||||||||||
them will yield errors. | ||||||||||||||
--> | ||||||||||||||
<dependency> | ||||||||||||||
<groupId>org.apache.spark</groupId> | ||||||||||||||
<artifactId>spark-tags_${scala.binary.version}</artifactId> | ||||||||||||||
<type>test-jar</type> | ||||||||||||||
<scope>test</scope> | ||||||||||||||
</dependency> | ||||||||||||||
|
||||||||||||||
</dependencies> | ||||||||||||||
<build> | ||||||||||||||
<outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory> | ||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.spark.sql.pipelines | ||
aakash-db marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
/** Represents a warning generated as part of graph analysis. */ | ||
sealed trait AnalysisWarning | ||
|
||
object AnalysisWarning { | ||
aakash-db marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
/** | ||
* Warning that some streaming reader options are being dropped | ||
* | ||
* @param sourceName Source for which reader options are being dropped. | ||
* @param droppedOptions Set of reader options that are being dropped for a specific source. | ||
*/ | ||
case class StreamingReaderOptionsDropped(sourceName: String, droppedOptions: Seq[String]) | ||
extends AnalysisWarning | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.spark.sql.pipelines | ||
aakash-db marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
sealed trait Language {} | ||
|
||
object Language { | ||
case class Python() extends Language {} | ||
case class Sql() extends Language {} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think
deleted
is actually correct in this case. It's not that Spark Streaming would be trying to delete the source data. The problem is that upstream source data would be deleted (as part of the "reset"), but we wouldn't know how to handle those upstream deletes in downstream tables that are derived from the upstream tables.