@Internal public class ArrayAppendPrependTypeStrategy extends Object implements TypeStrategy
DataTypes.ARRAY(DataType) with element type equal to the
type of the first argument if it's not nullable or element to add is not nullable, otherwise it
returns DataTypes.ARRAY(DataType) with type equal to the type of the element to add to
array.| Constructor and Description |
|---|
ArrayAppendPrependTypeStrategy() |
| Modifier and Type | Method and Description |
|---|---|
Optional<DataType> |
inferType(CallContext callContext)
Infers a type from the given function call.
|
public Optional<DataType> inferType(CallContext callContext)
TypeStrategyinferType in interface TypeStrategyCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.