AddComputedColumn
Adds a computed column to an Activated raw or time-range archive. The asset repository backfills the existing rows as a background job and returns at once; the column becomes visible atomically when the job completes (follow it with ListRecomputeJobs, or pass -w). A failed backfill is retried with RetryComputedColumnBackfill.
Examples
octo-cli -c AddComputedColumn -id <identifier> -n <name> -f <formula> -r <resultType>
Options
| Short | Long | Required | Description |
|---|---|---|---|
-id | --identifier | yes | Runtime id of the archive to add the computed column to |
-n | --name | yes | Output column name — the identifier formulas reference and the column appears under |
-f | --formula | yes | mXparser formula over other columns of the same row (e.g. 'activePower / apparentPower') |
-r | --resultType | yes | Declared result type the formula is cast back to: Boolean |
-x | --indexed | no | Whether to index the physical column ('true'/'false'). Defaults to true |
-w | --wait | no | Wait until the background backfill job has finished; exits non-zero when it fails |