adjust / parquet_fdw

Parquet foreign data wrapper for PostgreSQL
PostgreSQL License
351 stars 38 forks source link

parquet_fdw compilation error ubuntu 22, g++ 11 #57

Closed cabecada closed 1 year ago

cabecada commented 1 year ago

I am not able to compile the extension on ubuntu.

postgres@pg:~/parquet_fdw$ uname -a
Linux pg 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

postgres@pg:~/parquet_fdw$ sudo dpkg -l | egrep -i '(libarrow|libparquet)-dev'
ii  libarrow-dev:amd64              10.0.0-1                                amd64        Apache Arrow is a data processing library for analysis
ii  libparquet-dev:amd64            10.0.0-1                                amd64        Apache Parquet is a columnar storage format

postgres@pg:~/parquet_fdw$ lsb_release -r
Release:        22.04
postgres@pg:~/parquet_fdw$ gcc --version
gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

postgres@pg:~/parquet_fdw$ g++ --version
g++ (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

make logs in https://gist.github.com/cabecada/7c9c1e5288010efb37454c14373e75d6

cabecada commented 1 year ago

ok, the issue is due to libparquet and libarrow dev being default v10 in latest deb packages, whereas earlier it was 9 where it compiled fine.

cabecada commented 1 year ago

yep, indeed it was arrow v10.0.0 when i downgrade to v9.0.0 it works fine.

cabecada commented 1 year ago
 apt-get remove libarrow-dev libparquet-dev  # this installed v10.0.0
# force install older version

apt-get install libarrow-dev=9.0.0-1 libparquet-dev=9.0.0-1
make 
make install