Function datafusion::physical_expr::string_expressions::instr
source · pub fn instr<T>(
args: &[Arc<dyn Array>]
) -> Result<Arc<dyn Array>, DataFusionError>where
T: OffsetSizeTrait,
Expand description
Returns the position of the first occurrence of substring in string. The position is counted from 1. If the substring is not found, returns 0. For example, instr(‘Helloworld’, ‘world’) = 6.