Amazon Data Pipeline: How to use a script argument in a SqlActivity?

后端 未结 3 728
温柔的废话
温柔的废话 2020-12-30 12:10

When trying to use a Script Argument in the sqlActivity:

 {
\"id\" : \"ActivityId_3zboU\",
  \"schedule\" : { \"ref\" : \"DefaultSchedule\" },
  \"scriptUri\         


        
3条回答
  •  庸人自扰
    2020-12-30 12:41

    I believe you are using this sql activity for Redshift. Can you modify your sql script to refer to parameters using their positional notation. To refer to the parameters in the sql statement itself, use $1, $2, etc.

    See http://www.postgresql.org/docs/9.1/static/sql-prepare.html

提交回复
热议问题