Comments (4)
Even if the variable is defined inside a task, ${xxx} will not be replaced.
from digdag.
Doesn't it work?
What's the current behavior and what's the expected behavior?
from digdag.
Here is an example to reproduce the problem:
run: +main
_export:
td:
database: sampledb
account: test
+main:
_export:
prefix: q_${account}
+hello:
td>: sql/select1.sql
create_table: ${prefix}_hello
$ digdag run -f test.yml -p apikey=$TD_API_KEY -a -E [11:03:56 Mar 10 2016]
2016-03-11 11:03:58 +0900: Digdag v0.3.5
2016-03-11 11:03:58 +0900 [WARN] (main): --session-time argument, --hour argument, or _schedule in yaml file is not set. Using today's 00:00:00 as ${session_time}.
2016-03-11 11:03:58 +0900 [INFO] (main): Using state files at digdag.status/20160311T000000+0900.
2016-03-11 11:03:58 +0900 [INFO] (main): Starting a new session repository id=1 workflow name=+main session_time=2016-03-11T00:00:00+09:00
2016-03-11 11:03:59 +0900 [INFO] (0021@+main+hello): td>: sql/select1.sql
2016-03-11 11:03:59 +0900 [WARN] (0021@+main+hello):
td:
database: "sampledb"
account: "test"
timezone: "Asia/Tokyo"
apikey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
prefix: "q_${account}"
session_id: 1
session_uuid: "63700d1d-91b4-4fc5-84cd-0065ef32f7a0"
session_time: "2016-03-11T00:00:00+09:00"
session_date: "2016-03-11"
session_date_compact: "20160311"
session_local_time: "2016-03-11 00:00:00"
session_tz_offset: "+0900"
session_unixtime: 1457622000
repository_id: 1
td>: "sql/select1.sql"
create_table: "q_${account}_hello"
_type: "td"
_command: "sql/select1.sql"
2016-03-11 11:03:59 +0900 [INFO] (0021@+main+hello): td-client version: unknown
2016-03-11 11:03:59 +0900 [INFO] (0021@+main+hello): Logging initialized @1311ms
2016-03-11 11:04:01 +0900 [WARN] (0021@+main+hello): [404:Not Found] API request to /v3/table/delete/sampledb/q_%24%7Baccount%7D_hello has failed: Resource not found
2016-03-11 11:04:01 +0900 [INFO] (0021@+main+hello): Started 55275625 job id=presto:
CREATE TABLE "q_${account}_hello" AS
select 1
2016-03-11 11:04:03 +0900 [WARN] (0021@+main+hello): Job 55275625:
===
started at 2016-03-11T02:04:00Z
executing query: CREATE TABLE "q_${account}_hello" AS select 1
finished at 2016-03-11T02:04:00Z
Query 20160311_020400_21445_9ah8x failed: line 1:1: Column name not specified at position 1
===
from digdag.
Fixed at 9c12963
from digdag.
Related Issues (20)
- How do I point to the parent path? HOT 1
- [feature-request] Oracle operator HOT 1
- Unable to kill node.js task HOT 3
- How to create a global config for multiple projects in the workspace? HOT 2
- Unable to exit as success status when using sys.exit(0) from py:> operator HOT 2
- broken dependency in digdag-client
- Please add route /workflows/{workflow_id}/edit
- [Regression] Commit breaks --enable-swagger HOT 3
- Concurrent update in table "QUEUED_TASK_LOCKS": another transaction has updated or deleted the same row [90131-192] HOT 5
- Please release v0.10.5 HOT 2
- Swagger is broken in v0.10.5 and v0.10.5.1 HOT 2
- Docker build environment fails to build HOT 1
- How to exit or continue while using if or for_each or range or loop in digdag?
- How to add two conditions in the if statement in digdag? HOT 2
- Workflow task is showing running status
- Error with http call HOT 5
- Incorrect description of the `last_id` query param on GET /api/attempts endpoint. HOT 1
- Directory extraction task in workflow extracts unexpected items HOT 2
- Slack notification not sent when error occurs HOT 1
- "Text file busy" errors occur when running shell script via "sh>" HOT 4
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 digdag.