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

Updata to use DuckDB v1.0.0 #48

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

eydunn
Copy link
Contributor

@eydunn eydunn commented Jun 20, 2024

I built it with docker build and ran it in Docker Desktop.

create extension duckdb_fdw;

CREATE SERVER duckdb_server
FOREIGN DATA WRAPPER duckdb_fdw
OPTIONS (database '/tmp/duck.db');

SELECT duckdb_execute('duckdb_server','CREATE TABLE t1_duckdb (a integer, b text);');

CREATE FOREIGN TABLE t1 (
   a integer,
   b text
)
SERVER duckdb_server
OPTIONS (
    table 't1_duckdb'
);

select * from t1; 

insert into t1 values (1,'a');

select * from t1; 

SELECT duckdb_execute('duckdb_server','CREATE TABLE info_ddb as select version() as version;');
CREATE FOREIGN TABLE info_ddb (
   version text
)
SERVER duckdb_server
OPTIONS (
    table 'info_ddb'
);
select version as duckdb_version, duckdb_fdw_version() as duckdb_fdw_version, version() as postgrsql_version from info_ddb;
duckdb_version:
v1.0.0 

duckdb_fdw_version: 
20101

postgrsql_version:
PostgreSQL 16.3 (Debian 16.3-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit

@alitrack alitrack merged commit 94c8001 into alitrack:main Jun 25, 2024
1 check passed
@eydunn eydunn deleted the update-to-build-with-duckdb-v1.0.0 branch June 25, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants