Skip to content

Commit

Permalink
Add a decimal field in record
Browse files Browse the repository at this point in the history
  • Loading branch information
bgaidioz committed Feb 26, 2025
1 parent 93753d6 commit 9281f60
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/scala/com/rawlabs/das/mock/DASMock.scala
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ class DASMock(options: Map[String, String]) extends DASSdk with StrictLogging {
.setName("intField")
.setTipe(Type.newBuilder().setInt(IntType.newBuilder()).build())
.build())
.addAtts(AttrType
.newBuilder()
.setName("decimalField")
.setTipe(Type.newBuilder().setDecimal(DecimalType.newBuilder()).build()))
.addAtts(AttrType
.newBuilder()
.setName("binaryField")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ class DASMockAllTypesTable(maxRows: Int) extends DASTable {
.newBuilder()
.setName("intField")
.setValue(Value.newBuilder().setInt(ValueInt.newBuilder().setV(i).build()).build()))
.addAtts(ValueRecordAttr
.newBuilder()
.setName("decimalField")
.setValue(
Value.newBuilder().setDecimal(ValueDecimal.newBuilder().setV(i.toString).build()).build()))
.addAtts(
ValueRecordAttr
.newBuilder()
Expand Down

0 comments on commit 9281f60

Please sign in to comment.