Comments (4)
The SaveMode.Ignore
works the similar way as CREATE TABLE IF NOT EXISTS
in sql. The data are stored only when the target destination is empty (the file doesn't exist for example), otherwise the write is just ignored.
The problem is to get the information which of those two happend. The best way to do it seems to be write metric numFiles
. This seems to work, but not for every source. For example Excel source doesn't produce any metrics at all. To deal with this there should be warning when the information is not there and the write will be ignored by spline as well.
from spline-spark-agent.
It seems to me that we are dealing with false positive vs false negative dilemma. If we treat absence of change metrics are ignored write we might loose some lineage information. Otherwise we might record lineages that did not actually happen.
What if we make this strategy configurable in the agent, so the user can decide which (mis)behavior is more tolerable for his needs?
E.g.
spline.ignored_write_detection_strategy=BY_METRICS_ABSENCE | BY_METRICS_ZERO
from spline-spark-agent.
When metric is absent we still always want to ignore by metric zero. What about:
spline.ignored_write_metrics_missing_action=IGNORE_WRITE | CAPTURE_WRITE
from spline-spark-agent.
let's do it even cleverer, using a future-proof approach. Let's use a strategy pattern for the ignore write detection logic with the built-in default implementation. And the property we are are discussing will then be a property of the default implementation. Hence the hierarchical configuration (spline -> strategy -> impl -> property):
spline.iwd_strategy.default.on_missing_metrics=IGNORE_LINEAGE | CAPTURE_LINEAGE
If somebody wants to override it with say com.foo.MyIWDStrategy
then the config would look like
class MyIWDStrategy extends IWDStragery {
override val name = "myImpl"
def propFoo = ???
def propBar = ???
}
spline.iwd_strategy.class = com.foo.MyIWDStrategy
spline.iwd_strategy.myImpl.propFoo = ...
spline.iwd_strategy.myImpl.propBar = ...
from spline-spark-agent.
Related Issues (20)
- Spline agent affecting databricks driver performance HOT 7
- Datahub integration reference link HOT 1
- Getting error while connecting tryng to use Kafka dispatcher HOT 1
- Initialization failure handling control HOT 2
- Cant track org.apache.hadoop.fs.rename
- use splineAgent as a Jar file HOT 12
- Spline Agent required for spark 3.4 version and Scala 2.12 HOT 2
- Facing issues while sending Databricks Lineage (Spline) to kafka HOT 1
- Support for spark 3.5 HOT 1
- Does spline solution support snowpark
- Support of setting the arangoDB name on the configuration HOT 7
- Need to deploy on Synapse environment in order to track lineage for Synapse notebooks HOT 1
- Unity Catalog Support to get the Notebook details
- Support for AWS Glue DynamicFrame HOT 2
- Error when running spark application with agent-core as queryExecutionListeners in java 17
- Spline Support of Statment Create table as select HOT 11
- Using Spline in Spark Scala project HOT 1
- Can Spline support lineage for AWS glue Spark dynamic frames? HOT 1
- Spline doesn't track some in memory operations in pyspark HOT 5
- Customized Listener HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spline-spark-agent.