Skip to content

Commit

Permalink
Fixed RD-10527
Browse files Browse the repository at this point in the history
  • Loading branch information
bgaidioz committed Jan 26, 2024
1 parent c5dc263 commit d653944
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class TypedPolyglotCsvWriter(os: OutputStream, lineSeparator: String) {
case _: RawLongType => gen.writeNumber(v.asLong())
case _: RawFloatType => gen.writeNumber(v.asFloat())
case _: RawDoubleType => gen.writeNumber(v.asDouble())
case _: RawDecimalType => gen.writeString(v.asHostObject[java.math.BigDecimal]().toString())
case _: RawDecimalType => gen.writeNumber(v.asHostObject[java.math.BigDecimal]())
case _: RawStringType => gen.writeString(v.asString())
case _: RawDateType =>
val date = v.asDate()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class TypedPolyglotJsonWriter(os: OutputStream) {
case _: RawLongType => gen.writeNumber(v.asLong())
case _: RawFloatType => gen.writeNumber(v.asFloat())
case _: RawDoubleType => gen.writeNumber(v.asDouble())
case _: RawDecimalType => gen.writeString(v.asHostObject[java.math.BigDecimal]().toString)
case _: RawDecimalType => gen.writeNumber(v.asHostObject[java.math.BigDecimal]())
case _: RawStringType => gen.writeString(v.asString())
case _: RawDateType =>
val date = v.asDate()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class Rql2CsvWriter(os: OutputStream, lineSeparator: String) {
case _: Rql2LongType => gen.writeNumber(v.asLong())
case _: Rql2FloatType => gen.writeNumber(v.asFloat())
case _: Rql2DoubleType => gen.writeNumber(v.asDouble())
case _: Rql2DecimalType => gen.writeString(v.asString())
case _: Rql2DecimalType => gen.writeNumber(v.asString())
case _: Rql2StringType => gen.writeString(v.asString())
case _: Rql2DateType =>
val date = v.asDate()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Rql2JsonWriter(os: OutputStream) {
case _: Rql2LongType => gen.writeNumber(v.asLong())
case _: Rql2FloatType => gen.writeNumber(v.asFloat())
case _: Rql2DoubleType => gen.writeNumber(v.asDouble())
case _: Rql2DecimalType => gen.writeString(v.asString())
case _: Rql2DecimalType => gen.writeNumber(v.asString())
case _: Rql2StringType => gen.writeString(v.asString())
case _: Rql2DateType =>
val date = v.asDate()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class TypedResultSetCsvWriter(os: OutputStream, lineSeparator: String) {
case _: RawLongType => gen.writeNumber(v.getLong(i))
case _: RawFloatType => gen.writeNumber(v.getFloat(i))
case _: RawDoubleType => gen.writeNumber(v.getDouble(i))
case _: RawDecimalType => gen.writeString(v.getBigDecimal(i).toString)
case _: RawDecimalType => gen.writeNumber(v.getBigDecimal(i))
case _: RawStringType => gen.writeString(v.getString(i))
case _: RawAnyType => v.getMetaData.getColumnTypeName(i) match {
case "jsonb" | "json" =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class TypedResultSetJsonWriter(os: OutputStream) {
case _: RawLongType => gen.writeNumber(v.getLong(i))
case _: RawFloatType => gen.writeNumber(v.getFloat(i))
case _: RawDoubleType => gen.writeNumber(v.getDouble(i))
case _: RawDecimalType => gen.writeString(v.getBigDecimal(i).toString)
case _: RawDecimalType => gen.writeNumber(v.getBigDecimal(i))
case _: RawStringType => gen.writeString(v.getString(i))
case _: RawAnyType => v.getMetaData.getColumnTypeName(i) match {
case "jsonb" | "json" =>
Expand Down

0 comments on commit d653944

Please sign in to comment.