Skip to content

Commit 637003a

Browse files
committed
feat: Extend arithmetic negate support for NULLs
Signed-off-by: Alex Qyoun-ae <4062971+MazterQyou@users.noreply.github.com>
1 parent edbe6a8 commit 637003a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

datafusion/common/src/scalar.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,9 @@ impl ScalarValue {
617617
| ScalarValue::Int16(None)
618618
| ScalarValue::Int32(None)
619619
| ScalarValue::Int64(None)
620+
| ScalarValue::Float64(None)
620621
| ScalarValue::Float32(None)
622+
| ScalarValue::Decimal128(None, _, _)
621623
| ScalarValue::IntervalYearMonth(None)
622624
| ScalarValue::IntervalDayTime(None) => self.clone(),
623625
ScalarValue::Float64(Some(v)) => ScalarValue::Float64(Some(-v)),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy