Skip to main content

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​

ShortLongRequiredDescription
-id--identifieryesRuntime id of the archive to add the computed column to
-n--nameyesOutput column name — the identifier formulas reference and the column appears under
-f--formulayesmXparser formula over other columns of the same row (e.g. 'activePower / apparentPower')
-r--resultTypeyesDeclared result type the formula is cast back to: Boolean
-x--indexednoWhether to index the physical column ('true'/'false'). Defaults to true
-w--waitnoWait until the background backfill job has finished; exits non-zero when it fails