message: Correctly set constant vector state
diff: @@ -141,13 +141,6 @@ static void ArraySliceFunction(DataChunk &args, ExpressionState &state, Vector &
  D_ASSERT(args.data.size() == 3);
  auto count = args.size();
  - result.SetVectorType(VectorType::CONSTANT_VECTOR);
  - for (idx_t i = 0; i < args.ColumnCount(); i++) {
  - if (args.data[i].GetVectorType() != VectorType::CONSTANT_VECTOR) {
  - result.SetVectorType(VectorType::FLAT_VECTOR);
  - }
  - }
  -
  Vector &s = args.data[0];
  Vector &b = args.data[1];
  Vector &e = args.data[2];
  @@ -165,6 +158,14 @@ static void ArraySliceFunction(DataChunk &args, ExpressionState &state, Vector &
  default:
  throw NotImplementedException("Specifier type not implemented");
  }
  +
  + result.SetVectorType(VectorType::CONSTANT_VECTOR);
  + for (idx_t i = 0; i < args.ColumnCount(); i++) {
  + if (args.data[i].GetVectorType() != VectorType::CONSTANT_VECTOR) {
  + result.SetVectorType(VectorType::FLAT_VECTOR);
  + break;
  + }
  + }
  }
  static unique_ptr<FunctionData> ArraySliceBind(ClientContext &context, ScalarFunction &bound_function,
  