Second Brain: Crafted, Curated, Connected, Compounded on 10月02日 20:54
领域特定语言在数据处理中的应用
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

本文探讨了领域特定语言(DSL)在数据处理中的应用,特别是在Dagster系统中如何通过YAML文件构建数据管道。

A Domain-Specific Language (DSL) is a computer language targeted at a particular kind of problem, rather than a general-purpose language aimed at any kind of software problem.

Domain-specific languages have been discussed and used for almost as long as computing has existed. In the data space, they are mostly used with YAML. For example, Dagster uses a DSL to declaratively create a pipeline/graph (docs): ^8853ef

Sometimes, you may want to construct the dependencies of a graph definition from a YAML file or similar. This is useful when migrating to Dagster from other workflow systems.

For example, you can have a YAML like this:

 1 2 3 4 5 6 7 8 9101112131415161718192021
name: some_exampledescription: blah blah blahops:  - def: add_one    alias: A  - def: add_one    alias: B    deps:      num:        op: A  - def: add_two    alias: C    deps:      num:        op: A  - def: subtract    deps:      left:        op: B      right:        op: C

# DSL for data pipelines

A DSL is a good way to empower less Pythonic users, such as data analysts. It provides a declarative approach to building data pipelines.

A comprehensive write-up by Elliot Gunn and Tim Castillo on Standardize Pipelines with Domain-Specific Languages | Dagster Blog offers valuable insights.

# Case Studies

# Languages

    Knotty: A domain-specific language for knitting patterns.

Origin:
References:
Created 2022-09-22

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

领域特定语言 数据处理 Dagster YAML 数据管道
相关文章