compilation_results
Creates, updates, deletes, gets or lists a compilation_results
resource.
Overview
Name | compilation_results |
Type | Resource |
Id | google.dataform.compilation_results |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The compilation result's name. |
codeCompilationConfig | object | Configures various aspects of Dataform code compilation. |
compilationErrors | array | Output only. Errors encountered during project compilation. |
createTime | string | Output only. The timestamp of when the compilation result was created. |
dataEncryptionState | object | Describes encryption state of a resource. |
dataformCoreVersion | string | Output only. The version of @dataform/core that was used for compilation. |
gitCommitish | string | Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA: 12ade345 - a tag: tag1 - a branch name: branch1 |
releaseConfig | string | Immutable. The name of the release config to compile. Must be in the format projects/*/locations/*/repositories/*/releaseConfigs/* . |
resolvedGitCommitSha | string | Output only. The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace. |
workspace | string | Immutable. The name of the workspace to compile. Must be in the format projects/*/locations/*/repositories/*/workspaces/* . |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | compilationResultsId, locationsId, projectsId, repositoriesId | Fetches a single CompilationResult. |
list | SELECT | locationsId, projectsId, repositoriesId | Lists CompilationResults in a given Repository. |
query | SELECT | compilationResultsId, locationsId, projectsId, repositoriesId | Returns CompilationResultActions in a given CompilationResult. |
create | INSERT | locationsId, projectsId, repositoriesId | Creates a new CompilationResult in a given project and location. |
SELECT
examples
Lists CompilationResults in a given Repository.
SELECT
name,
codeCompilationConfig,
compilationErrors,
createTime,
dataEncryptionState,
dataformCoreVersion,
gitCommitish,
releaseConfig,
resolvedGitCommitSha,
workspace
FROM google.dataform.compilation_results
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new compilation_results
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dataform.compilation_results (
locationsId,
projectsId,
repositoriesId,
gitCommitish,
workspace,
releaseConfig,
codeCompilationConfig
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ repositoriesId }}',
'{{ gitCommitish }}',
'{{ workspace }}',
'{{ releaseConfig }}',
'{{ codeCompilationConfig }}'
;
- name: your_resource_model_name
props:
- name: gitCommitish
value: string
- name: workspace
value: string
- name: releaseConfig
value: string
- name: name
value: string
- name: codeCompilationConfig
value:
- name: defaultDatabase
value: string
- name: defaultSchema
value: string
- name: defaultLocation
value: string
- name: assertionSchema
value: string
- name: vars
value: object
- name: databaseSuffix
value: string
- name: schemaSuffix
value: string
- name: tablePrefix
value: string
- name: defaultNotebookRuntimeOptions
value:
- name: gcsOutputBucket
value: string
- name: resolvedGitCommitSha
value: string
- name: dataformCoreVersion
value: string
- name: compilationErrors
value:
- - name: message
value: string
- name: stack
value: string
- name: path
value: string
- name: actionTarget
value:
- name: database
value: string
- name: schema
value: string
- name: name
value: string
- name: dataEncryptionState
value:
- name: kmsKeyVersionName
value: string
- name: createTime
value: string