Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
In-Memory Analytics with Apache Arrow

You're reading from  In-Memory Analytics with Apache Arrow

Product type Book
Published in Jun 2022
Publisher Packt
ISBN-13 9781801071031
Pages 392 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Matthew Topol Matthew Topol
Profile icon Matthew Topol

Table of Contents (16) Chapters

Preface Section 1: Overview of What Arrow Is, its Capabilities, Benefits, and Goals
Chapter 1: Getting Started with Apache Arrow Chapter 2: Working with Key Arrow Specifications Chapter 3: Data Science with Apache Arrow Section 2: Interoperability with Arrow: pandas, Parquet, Flight, and Datasets
Chapter 4: Format and Memory Handling Chapter 5: Crossing the Language Barrier with the Arrow C Data API Chapter 6: Leveraging the Arrow Compute APIs Chapter 7: Using the Arrow Datasets API Chapter 8: Exploring Apache Arrow Flight RPC Section 3: Real-World Examples, Use Cases, and Future Development
Chapter 9: Powered by Apache Arrow Chapter 10: How to Leave Your Mark on Arrow Chapter 11: Future Development and Plans Other Books You May Enjoy

Executing compute functions

The Arrow compute library has a global FunctionRegistry, which allows looking up functions by name and listing what is available to call. The list of available compute functions can also be found in the Arrow documentation at https://arrow.apache.org/docs/cpp/compute.html#available-functions. Let's see how to execute these functions now!

Using the C++ compute library

The compute library is managed as a separate module in the base Arrow package. If you've compiled the library yourself from source, make sure that you've used the ARROW_COMPUTE=ON option during configuration.

Example 1 – adding a scalar value to an array

Our first example is going to be a simple scalar function call on an array of data, using the same Parquet file as we did previously in the C Data API examples:

  1. First things first, we need to read the column we want from the Parquet file. We can use the Parquet C++ library to open the file and it provides...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}