Skip to content

Commit

Permalink
#120: ignoring status-related fields for now, not supported like this…
Browse files Browse the repository at this point in the history
… by current fa-db version (but will be soon)
  • Loading branch information
lsulak committed Apr 25, 2024
1 parent 44c3664 commit 450a45f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ import za.co.absa.atum.server.api.database.DoobieImplicits.getMapWithOptionStrin
class GetPartitioningAdditionalData (implicit schema: DBSchema, dbEngine: DoobieEngine[Task])
extends DoobieMultipleResultFunction[PartitioningDTO, (String, Option[String]), Task]
{

override val fieldsToSelect: Seq[String] = Seq("ad_name", "ad_value")

import za.co.absa.atum.server.api.database.DoobieImplicits.Jsonb.jsonbPutUsingString
override def sql(values: PartitioningDTO)(implicit read: Read[(String, Option[String])]): Fragment = {
val partitioning: PartitioningForDB = PartitioningForDB.fromSeqPartitionDTO(values)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class GetPartitioningMeasures (implicit schema: DBSchema, dbEngine: DoobieEngine
{
import za.co.absa.atum.server.api.database.DoobieImplicits.Jsonb.jsonbPutUsingString

override val fieldsToSelect: Seq[String] = Seq("measure_name", "measured_columns")

override def sql(values: PartitioningDTO)(implicit read: Read[MeasureDTO]): Fragment = {
val partitioning = PartitioningForDB.fromSeqPartitionDTO(values)
val partitioningJsonString = Json.toJson(partitioning).toString
Expand Down

0 comments on commit 450a45f

Please sign in to comment.