how to add a constant value (1) in an empty column in snowflake-matillion

喜你入骨 提交于 2021-01-07 06:31:33

问题


my table looks like

id  total  avg  test_no
1   445     89 
2   434     85
3   378     75
4   421     84

I'm working on matillion-snowflake

I need my result to look like

id  total  avg  test_no
1   445     89   1
2   434     85   1
3   378     75   1
4   421     84   1

回答1:


In Snowflake, you would modify the table using:

update t
    set test_no = 1;

I assume that Matillion supports this as well.




回答2:


Just use a Calculator component and set the value of the calculated column to 1



来源:https://stackoverflow.com/questions/65291812/how-to-add-a-constant-value-1-in-an-empty-column-in-snowflake-matillion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!