You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2022/06/26 20:50:01 UTC
[arrow] branch master updated: MINOR: [Docs] Use endpoint_override in code example for minIO (#13436)
This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 49f2696245 MINOR: [Docs] Use endpoint_override in code example for minIO (#13436)
49f2696245 is described below
commit 49f26962456e11902621e41574bc5890205eac7a
Author: Jürgen Walter <ju...@gmail.com>
AuthorDate: Sun Jun 26 22:49:53 2022 +0200
MINOR: [Docs] Use endpoint_override in code example for minIO (#13436)
Current code snippet show how to configure connection to minIO appears to use wrong named argument for endpoint. Instead of `endpoint` it should be `endpoint_override`
see https://arrow.apache.org/docs/python/generated/pyarrow.fs.S3FileSystem.html
<img width="560" alt="image" src="https://user-images.githubusercontent.com/179870/175815553-18042907-1c9d-4cd1-8a3b-ef9a1284b4c8.png">
Authored-by: Jürgen Walter <ju...@gmail.com>
Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
docs/source/python/dataset.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/source/python/dataset.rst b/docs/source/python/dataset.rst
index 4b66809bb4..4808457355 100644
--- a/docs/source/python/dataset.rst
+++ b/docs/source/python/dataset.rst
@@ -386,7 +386,7 @@ useful for testing or benchmarking.
from pyarrow import fs
# By default, MinIO will listen for unencrypted HTTP traffic.
- minio = fs.S3FileSystem(scheme="http", endpoint="localhost:9000")
+ minio = fs.S3FileSystem(scheme="http", endpoint_override="localhost:9000")
dataset = ds.dataset("ursa-labs-taxi-data/", filesystem=minio,
partitioning=["year", "month"])