Skip to content

Commit

Permalink
OB-37347: Update terraform API to handle acceleration disabled source
Browse files Browse the repository at this point in the history
  • Loading branch information
obs-gh-waltercai committed Oct 18, 2024
1 parent 69626b2 commit ffa3d38
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions client/internal/meta/schema/dataset.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,12 @@ type DatasetInputDataset @goModel(model: "observe/meta/metatypes.DatasetInputDat
inputRole: InputRole!,
}

enum AccelerationDisabledSource @goModel(model:"observe/meta/metatypes.DatasetMaterializationDisabledSource") {
Empty
Monitor
View
}

type Dataset implements WorkspaceObject & FolderObject & AuditedObject & AccelerableObject @goModel(model: "observe/meta/metatypes.Dataset") {
id: ObjectId!
version: Time!
Expand Down Expand Up @@ -379,6 +385,7 @@ type Dataset implements WorkspaceObject & FolderObject & AuditedObject & Acceler
accelerable: Boolean!
accelerationInfo: AccelerationInfo! @goField(forceResolver:true)
accelerationDisabled: Boolean! @goField(name:materializationDisabled)
accelerationDisabledSource: AccelerationDisabledSource! @goField(name:materializationDisabledSource)

"""
If the dataset is not hibernated, this field will be set to null.
Expand Down Expand Up @@ -591,7 +598,18 @@ input DatasetInput @goModel(model: "observe/meta/metatypes.DatasetInput") {
"""
overwriteSource: Boolean
deleted: Boolean
"""
Specifies if dataset acceleration should be disabled. Set to true if
dataset materialization is not desired. Defaults to false.
"""
accelerationDisabled: Boolean @goField(name:materializationDisabled)
"""
Optional reason given for why a dataset is not accelerated. For example,
when creating a dataset view, user must set accelerationDisabled to true
and set accelerationDisabledSource to 'View'. Options include: 'Empty',
'Monitor', and 'View'. Defaults to 'Empty'.
"""
accelerationDisabledSource: AccelerationDisabledSource @goField(name:materializationDisabledSource)
latencyDesired: Int64
freshnessDesired: Int64
iconUrl: String
Expand Down

0 comments on commit ffa3d38

Please sign in to comment.