Skip to content

Postgres backend parquet problem #9292

Answered by gforsyth
ozgurkalan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ozgurkalan !

sample = ibis.read_parquet("sample.gzip")

without an explicit backend set up, this operation happens in DuckDB, so your sample table is a DuckDB table with the contents of your sample.gzip file -- you cannot (currently) arbitrarily pass data from one backend to another, which is why you have to convert it to an intermediate format first (I would suggest using to_pyarrow() instead).

Postgres doesn't have any way to read data from a parquet file, hence the error message you are hitting when you try to call read_parquet on the postgres connection.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ozgurkalan
Comment options

Answer selected by ozgurkalan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants