MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

Reading parquet files

Open Menziess opened this issue 7 years ago • 9 comments

I have a folder on blob storage that contains part parquet files, that together form a dataframe.

I'm receiving an UnexpectedError: {'errorCode': 'Microsoft.DataPrep.ErrorCodes.Unknown', 'message': 'expected 878313 bytes in source stream but could read only 674363', 'errorData': {}}

when I try to create a Dataset from parquet files like this:

events_data_ref = ds.path('events/parquet/*.parquet')
dataset = Dataset.from_parquet_files(events_data_ref)

When I use the path 'events/parquet/', the following error is shown: UnexpectedError: {'errorCode': 'Microsoft.DataPrep.ErrorCodes.Unknown', 'message': 'not a Parquet file (size too small)', 'errorData': {}}

Am I doing something wrong?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Menziess avatar May 10 '19 21:05 Menziess

Hi Menziess, This issue should be fixed as of azureml-core version 1.0.41. Would you mind trying again to see if this issue persists? Cheers

lupickup avatar Jun 08 '19 04:06 lupickup

Thank you, a Microsoft employee has visited our company and would look into the issue personally. I can leave this Issue open to post our progress.

Menziess avatar Jun 13 '19 10:06 Menziess

I did some tests, and was able to read a parquet file in the folder test/part-*. But when I replicated our partitioned parquet file by moving the part-* files to test/year=2019/month=4/day=14/part-*, the following problems occured:

For each of the methods:

def read_parquet_file(method, ref):
    return {
        1: dprep.auto_read_file,
        2: Dataset.auto_read_files,
        3: Dataset.from_parquet_files,
    }[method](ref)

I got the following errors: ExecutionError: Failed to read files and get data source properties suggestions ExecutionError: Failed to read files and get data source properties suggestions ExecutionError: The provided path is not valid or the files could not be accessed.

Menziess avatar Jun 14 '19 12:06 Menziess

Hello. Are you still experiencing this issue?

j-martens avatar Jul 11 '19 23:07 j-martens

Hi, I've just tried to load the parquet file again, but I'm currently getting

HTTPError: HTTP Error 404: The specified blob does not exist.

During handling of the above exception, another exception occurred:

ValueError: Unsupported Linux distribution ubuntu 19.04

I can see that the blob exists using datastore.blob_service.list_blobs(container, path).

Menziess avatar Jul 14 '19 12:07 Menziess

@nibaccam - can you see with may on the this one please?

j-martens avatar Sep 06 '19 13:09 j-martens

Hi Looks like you are using Linux ubuntu 19.04 Only 16.04 or 18.04 are supported

MayMSFT avatar Sep 08 '19 17:09 MayMSFT

Hi @Menziess, did the above suggestion solve the issue? If so #please-close.

nibaccam avatar Oct 01 '19 23:10 nibaccam

@Menziess , since we haven't heard back from you. We will proceed to close the issue. If you feel that your issue has not resolved. Please re-open the issue with additional information

PeterCLu avatar Jan 27 '20 22:01 PeterCLu