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

unresolved_type issues #609

Open
2 tasks done
tjwebb opened this issue Feb 15, 2025 · 0 comments
Open
2 tasks done

unresolved_type issues #609

tjwebb opened this issue Feb 15, 2025 · 0 comments

Comments

@tjwebb
Copy link

tjwebb commented Feb 15, 2025

What happens?

Once the query gets executed by DuckDB the actual type will be filled in by DuckDB. So, a query result will never contain a column that has duckdb.unresolved_type as its type.
So, if you get errors involving this type, please report an issue.

I'm trying to get a duckdb geometry into postgres by wrapping it in ST_AsText() to return a string, but I get an error that it is always an unresolved type.

To Reproduce

Run this query in postgres:

select duckdb.install_extension('spatial');
select
	r['id'],
	r['primary_name'],
	r['height'],
	st_geomfromtext(r['geom_text']) as geom
from duckdb.query('

SELECT
	id,
	names.primary as primary_name,
	height,
	st_astext(geometry) as geom_text
	FROM ''s3://overturemaps-us-west-2/release/2025-01-22.0/theme=buildings/type=building/*.parquet''
limit 10

') r;

You will get the following error:

ERROR:  function st_geomfromtext(duckdb.unresolved_type) does not exist
LINE 6:  st_geomfromtext(r['geom_text']) as geom

OS:

Linux on Docker on aarch64 Mac

pg_duckdb Version (if built from source use commit hash):

0.3.1

Postgres Version (if built from source use commit hash):

17

Hardware:

No response

Full Name:

Travis Webb

Affiliation:

myself

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have tested with a stable release

Did you include all relevant data sets for reproducing the issue?

Yes

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Linux distribution) to reproduce the issue?

  • Yes, I have
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

No branches or pull requests

1 participant