array_popfront

SinceVersion 2.0

array_popfront

description

Syntax

ARRAY<T> array_popfront(ARRAY<T> arr)

返回移除第一个元素后的数组,如果输入参数为NULL,则返回NULL

notice

仅支持向量化引擎中使用

example

  1. mysql> set enable_vectorized_engine=true;
  2. mysql> select array_popfront(['test', NULL, 'value']);
  3. +-----------------------------------------------------+
  4. | array_popfront(ARRAY('test', NULL, 'value')) |
  5. +-----------------------------------------------------+
  6. | [NULL, value] |
  7. +-----------------------------------------------------+

keywords

ARRAY,POPFRONT,ARRAY_POPFRONT