From dev-return-10959-archive-asf-public=cust-asf.ponee.io@arrow.apache.org Tue Mar 12 11:37:04 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4C87C180600 for ; Tue, 12 Mar 2019 12:37:04 +0100 (CET) Received: (qmail 83170 invoked by uid 500); 12 Mar 2019 11:37:03 -0000 Mailing-List: contact dev-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@arrow.apache.org Delivered-To: mailing list dev@arrow.apache.org Received: (qmail 83156 invoked by uid 99); 12 Mar 2019 11:37:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Mar 2019 11:37:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9663CC6710 for ; Tue, 12 Mar 2019 11:37:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id R-m0gBWZ7trP for ; Tue, 12 Mar 2019 11:37:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 4F6E0611A3 for ; Tue, 12 Mar 2019 11:37:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C0CE4E260E for ; Tue, 12 Mar 2019 11:37:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 78AF124594 for ; Tue, 12 Mar 2019 11:37:00 +0000 (UTC) Date: Tue, 12 Mar 2019 11:37:00 +0000 (UTC) From: "Mike Pedersen (JIRA)" To: dev@arrow.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ARROW-4836) "Cannot tell() a compressed stream" when using RecordBatchStreamWriter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Mike Pedersen created ARROW-4836: ------------------------------------ Summary: "Cannot tell() a compressed stream" when using RecordBatchStreamWriter Key: ARROW-4836 URL: https://issues.apache.org/jira/browse/ARROW-4836 Project: Apache Arrow Issue Type: Bug Components: Python Affects Versions: 0.12.1 Reporter: Mike Pedersen It does not seem like RecordBatchStreamWriter works with compressed streams: {code:python} >>> import pyarrow as pa >>> pa.__version__ '0.12.1' >>> stream = pa.output_stream('/tmp/a.gz') >>> batch = pa.RecordBatch.from_arrays([pa.array([1])], ['a']) >>> writer = pa.RecordBatchStreamWriter(stream, batch.schema) >>> writer.write(batch) Traceback (most recent call last): File "", line 1, in File "pyarrow/ipc.pxi", line 181, in pyarrow.lib._RecordBatchWriter.write File "pyarrow/ipc.pxi", line 196, in pyarrow.lib._RecordBatchWriter.write_batch File "pyarrow/error.pxi", line 89, in pyarrow.lib.check_status pyarrow.lib.ArrowNotImplementedError: Cannot tell() a compressed stream {code} As I understand the documentation, this should be possible, right? -- This message was sent by Atlassian JIRA (v7.6.3#76005)