ARROW-13008: [C++] Avoid deprecated API in minimal example
ARROW-13008: [C++] Avoid deprecated API in minimal example

Closes #10481 from pitrou/ARROW-13008-example-deprecation

Authored-by: Antoine Pitrou <9359a4d812173b65a3a0094cd86363e79731a3c2@python.org>
Signed-off-by: David Li <dc24f9cfc84fb1675ce65c8444a2c3e2f0e5f297@gmail.com>

cpcloud/arrow,icexelloss/arrow,laurentgo/arrow,laurentgo/arrow,apache/arrow,cpcloud/arrow,icexelloss/arrow,apache/arrow,laurentgo/arrow,wesm/arrow,apache/arrow,kou/arrow,wesm/arrow,cpcloud/arrow,wesm/arrow,kou/arrow,apache/arrow,laurentgo/arrow,kou/arrow,laurentgo/arrow,cpcloud/arrow,apache/arrow,apache/arrow,laurentgo/arrow,icexelloss/arrow,icexelloss/arrow,icexelloss/arrow,icexelloss/arrow,cpcloud/arrow,icexelloss/arrow,laurentgo/arrow,laurentgo/arrow,wesm/arrow,kou/arrow,apache/arrow,apache/arrow,apache/arrow,cpcloud/arrow,kou/arrow,cpcloud/arrow,wesm/arrow,wesm/arrow,laurentgo/arrow,laurentgo/arrow,apache/arrow,wesm/arrow,cpcloud/arrow,icexelloss/arrow,apache/arrow,kou/arrow,kou/arrow,wesm/arrow,kou/arrow,laurentgo/arrow,kou/arrow,wesm/arrow,kou/arrow,cpcloud/arrow,wesm/arrow,kou/arrow,kou/arrow,laurentgo/arrow,icexelloss/arrow,laurentgo/arrow,icexelloss/arrow,apache/arrow,cpcloud/arrow,laurentgo/arrow,cpcloud/arrow,apache/arrow,wesm/arrow,icexelloss/arrow,cpcloud/arrow,apache/arrow,icexelloss/arrow,cpcloud/arrow,cpcloud/arrow,laurentgo/arrow,icexelloss/arrow,wesm/arrow,kou/arrow,icexelloss/arrow,wesm/arrow,wesm/arrow,kou/arrow