Skip to content

Upgrade to arrow 19.0.1 #4341

Closed
Closed

Description

@ajpotts

Upgrade to arrow 19.0.1.

Activity

  1. self-assigned this
    on Apr 28, 2025
  2. ajpotts commented on Apr 28, 2025

    @ajpotts
    ContributorAuthor

    We're hoping upgrading for the latest bug fixes will resolve this error in the CI from io_tests.py:

     self = <io_test.TestParquet object at 0x7ff8ed3603c0>
    par_test_base_tmp = '/__w/arkouda/arkouda/.par_io_test', prob_size = 100
    
        @pytest.mark.parametrize("prob_size", pytest.prob_size)
        def test_large_parquet_io(self, par_test_base_tmp, prob_size):
            with tempfile.TemporaryDirectory(dir=par_test_base_tmp) as tmp_dirname:
                filename = f"{tmp_dirname}/pq_test_large_parquet"
                size = max(
                    prob_size, 2**21 + 8
                )  # A problem had been detected with parquet files of > 2**21 entries
                bool_array = np.array((size // 2) * [True, False]).tolist()
                flt_array = np.arange(size).astype(np.float64).tolist()
                int_array = np.arange(size).astype(np.int64).tolist()
                str_array = np.array(["a" + str(i) for i in np.arange(size)]).tolist()
                arrays = [bool_array, int_array, flt_array, str_array]
                tuples = list(zip(*arrays))
                names = ["first", "second", "third", "fourth"]
                index = pd.MultiIndex.from_tuples(tuples, names=names)
                s = pd.Series(np.random.randn(size), index=index)
                df = s.to_frame()
                df.to_parquet(filename)
    >           ak_df = ak.DataFrame(ak.read_parquet(filename))
    
    tests/io_test.py:327: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    arkouda/io.py:864: in read_parquet
        rep_msg = generic_msg(
    arkouda/client.py:1011: in generic_msg
        return cast(Channel, channel).send_string_message(
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = <arkouda.client.ZmqChannel object at 0x7ff8eda5d210>
    cmd = 'readAllParquet', recv_binary = False
    args = '["{\\"key\\": \\"strict_types\\", \\"dtype\\": \\"bool\\", \\"val\\": \\"True\\"}", "{\\"key\\": \\"dset_size\\", \\"...: \\"bool\\", \\"val\\": \\"False\\"}", "{\\"key\\": \\"fixed_len\\", \\"dtype\\": \\"int64\\", \\"val\\": \\"-1\\"}"]'
    size = 9, request_id = None
    
        def send_string_message(
            self,
            cmd: str,
            recv_binary: bool = False,
            args: Optional[str] = None,
            size: int = -1,
            request_id: Optional[str] = None,
        ) -> Union[str, memoryview]:
            message = RequestMessage(
                user=username, token=self.token, cmd=cmd, format=MessageFormat.STRING, args=args, size=size
            )
            # Note - Size is a placeholder here because Binary msg not yet support json args and
            # request_id is a noop for now
            logger.debug(f"sending message {json.dumps(message.asdict())}")
        
            self.socket.send_string(json.dumps(message.asdict()))
        
            if recv_binary:
                frame = self.socket.recv(copy=False)
                view = frame.buffer
                # raise errors sent back from the server
                if bytes(view[0 : len(b"Error:")]) == b"Error:":
                    raise RuntimeError(frame.bytes.decode())
                return view
            else:
                raw_message = self.socket.recv_string()
                try:
                    return_message = ReplyMessage.fromdict(json.loads(raw_message))
        
                    # raise errors or warnings sent back from the server
                    if return_message.msgType == MessageType.ERROR:
    >                   raise RuntimeError(return_message.msg)
    E                   RuntimeError: Error executing command: 1 errors: Error: ParquetError 187 coforall_fn:ParquetMsg Repetition level histogram size mismatch
    
    
  3. added 4 commits that reference this issue on Apr 28, 2025
  4. added a commit that references this issue on Apr 29, 2025
  5. ajpotts commented on Apr 30, 2025

    @ajpotts
    ContributorAuthor

    Completed with PR: #4342

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions