Skip to content

Commit

Permalink
sequences should support update (#992)
Browse files Browse the repository at this point in the history
* sequences should support update

* revert build sbt changes
  • Loading branch information
Jacob-Eliat-Eliat authored Nov 15, 2024
1 parent d595a40 commit bf7f02d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/cognite/spark/v1/SequencesRelation.scala
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,15 @@ object SequenceRelation
with ReadSchema
with InsertSchema
with DeleteWithIdSchema
with UpdateSchema
with NamedRelation {
override val name: String = "sequences"
import cognite.spark.compiletime.macros.StructTypeEncoderMacro._

override val upsertSchema: StructType = structType[SequenceUpsertSchema]()
override val insertSchema: StructType = structType[SequenceInsertSchema]()
override val readSchema: StructType = structType[SequenceReadSchema]()

override val updateSchema: StructType = upsertSchema
}

final case class SequenceColumnUpsertSchema(
Expand Down

0 comments on commit bf7f02d

Please sign in to comment.