admin管理员组文章数量:1356477
I often use variables in the Dataform config key, such as env.rawDataProject
here:
config {
type: "declaration",
database: env.rawDataProject,
schema: "raw_sales",
description: "Raw sales data, ingested daily"
}
I want to automatically format the Dataform config{}
blocks as part of my dev pipeline and it seems possible as the config{}
block is almost compliant JSON5 (JSON with unquoted keys).
However unquoted variables like the above stop the default Python JSON5 parser library from working, as JSON5 values must be string quoted. I've tried:
database: "${env.rawDataProject}",
which does parse successfully with the JSON5 Python library, but Dataform reads this as a literal string and does no substitution.
Are there any solutions here?
本文标签: Read Dataform config block to JSON5Stack Overflow
版权声明:本文标题:Read Dataform config block to JSON5 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744024382a2577784.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论