Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Parquet] Can't roundtrip required/non-nullable strings #28683

Closed
asfimport opened this issue Jun 3, 2021 · 1 comment
Closed

[Parquet] Can't roundtrip required/non-nullable strings #28683

asfimport opened this issue Jun 3, 2021 · 1 comment

Comments

@asfimport
Copy link

The following code errors with

  File "bla.parquet", line 1
    PAR1<<\
        ^
SyntaxError: invalid syntax
import pyarrow as pa

string_required = ["Hello", "bbb", "aa", "", "bbb", "abc", "bbb", "bbb", "def", "aaa"]

fields = [
    pa.field("string1", pa.utf8(), nullable=False),
]
schema = pa.schema(fields)

data = {
    "string1": string_required,
}

t = pa.table(data, schema=schema)

pa.parquet.write_table(
    t,
    "bla.parquet",
    data_page_version=f"1.0",
)

parquet_file = pa.parquet.ParquetFile("bla.parquet")

Reporter: Jorge Leitão / @jorgecarleitao

Note: This issue was originally created as ARROW-12963. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Jorge Leitão / @jorgecarleitao:
My bad, this is not true, was looking incorrectly :(

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

No branches or pull requests

1 participant