pgspider / parquet_s3_fdw

ParquetS3 Foreign Data Wrapper for PostgresSQL
Other
202 stars 28 forks source link

No matching function call #19

Open the4thamigo-uk opened 1 year ago

the4thamigo-uk commented 1 year ago

Hi, I really want to use this on a project. I think it would be useful, but currently it's kinda let down by some incomplete build instructions. Ive managed to get through quite a few hurdles here but I am struggling now with :

arquet_s3_fdw_connection.cpp:518:69: error: no matching function for call to ‘Aws::S3::S3Client::S3Client(Aws::Auth::AWSCredentials&, Aws::Client::ClientConfiguration&)’
  518 |                 s3_client = new Aws::S3::S3Client(cred, clientConfig);

An example build in a Dockerfile would really help I think.

For information, Im trying to add this connector to the timescaledb docker image, which currently is built from this Dockerfile :

FROM timescale/timescaledb-ha:pg15-latest

USER root
RUN apt update && apt install -yq build-essential  postgresql-server-dev-15
RUN apt update && \
    apt install -y -V ca-certificates lsb-release wget && \
    wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && \
    apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && \
    apt update && \
    apt install -y -V libarrow-dev libparquet-dev
RUN apt install -yq curl zip unzip tar git

COPY . /parquet_s3_fdw 
WORKDIR /parquet_s3_fdw
RUN cd ./vcpkg && \
    ./bootstrap-vcpkg.sh && \
    ./vcpkg integrate install && \
    ./vcpkg install aws-sdk-cpp

RUN cd /parquet_s3_fdw && make install USE_PGXS=1 CCFLAGS="-std=c++17 -I/parquet_s3_fdw/vcpkg/installed/x64-linux/include"
hrkuma commented 1 year ago

Hi, It seems in latest AWS ASK CPP this error occurrs. At least, I could build using version of refs/tags/1.9.312. (In my environment postgres and aws-sdk-cpp is built from source code, so maybe we have more differences.)