Skip to content

Commit

Permalink
bugfix(export-iceberg): change type of labels column in StructType fr…
Browse files Browse the repository at this point in the history
…om StringType to MapType (#1725)
  • Loading branch information
nikitag55 authored Feb 29, 2024
1 parent 4889129 commit 6cd6f96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class DownsamplerSettings(conf: Config = ConfigFactory.empty()) extends Serializ
// append all fixed columns
fields.append(
StructField(COL_METRIC, StringType, false),
StructField(COL_LABELS, StringType),
StructField(COL_LABELS, MapType(StringType, StringType)),
StructField(COL_EPOCH_TIMESTAMP, LongType, false),
StructField(COL_TIMESTAMP, TimestampType, false),
StructField(COL_VALUE, DoubleType),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ class DownsamplerMainSpec extends AnyFunSpec with Matchers with BeforeAndAfterAl
StructField("workspace", StringType, false),
StructField("namespace", StringType, false),
StructField("metric", StringType, false),
StructField("labels", StringType),
StructField("labels", MapType(StringType, StringType)),
StructField("epoch_timestamp", LongType, false),
StructField("timestamp", TimestampType, false),
StructField("value", DoubleType),
Expand Down

0 comments on commit 6cd6f96

Please sign in to comment.