Github user heary-cao commented on the issue:
https://github.com/apache/spark/pull/22998
@kiszk thank you for review it.
- when writing null decimalsï¼
```
OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
iter length 1048576: Best/Avg Time(ms) Rate(M/s)
Per Row(ns) Relative
------------------------------------------------------------------------------------------------
before PR (input == null) 51 / 56 20.4
49.0 1.0X
after PR (input == null) 8 / 9 125.2
8.0 6.1X
```
- when writing non-null decimals
```
OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
iter length 1048576: Best/Avg Time(ms) Rate(M/s)
Per Row(ns) Relative
------------------------------------------------------------------------------------------------
before PR (input != null) 52 / 53 20.3
49.2 1.0X
after PR (input != null) 54 / 56 19.3
51.7 1.0X
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]