| 36 | arrow::is_boolean_type<TYPE>::value | |
| 37 | arrow::is_temporal_type<TYPE>::value>::type> |
| 38 | arrow::Result<std::shared_ptr<arrow::Array>> GetArrayDataSample( |
| 39 | const std::vector<typename TYPE::c_type>& values) { |
| 40 | using ArrowBuilderType = typename arrow::TypeTraits<TYPE>::BuilderType; |
| 41 | ArrowBuilderType builder; |
| 42 | ARROW_RETURN_NOT_OK(builder.Reserve(values.size())); |
| 43 | ARROW_RETURN_NOT_OK(builder.AppendValues(values)); |
| 44 | return builder.Finish(); |
| 45 | } |
| 46 | |
| 47 | const cp::FunctionDoc func_doc{ |
| 48 | "User-defined-function usage to demonstrate registering an out-of-tree function", |
nothing calls this directly
no test coverage detected