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

DuckDB Catalog Error: Table with name "results" already exists #12

Open
heuermh opened this issue Aug 27, 2024 · 0 comments
Open

DuckDB Catalog Error: Table with name "results" already exists #12

heuermh opened this issue Aug 27, 2024 · 0 comments

Comments

@heuermh
Copy link
Owner

heuermh commented Aug 27, 2024

Not sure, is this a local issue with duckdb, or remote issue with Athena?

$ se --query-path foo.sql --format parquet --results-path foo.parquet
[ERROR] SeaEagle - Could not process results for query execution ID 924862cf-2211-4b46-93c7-abe4ba0df90d, caught exception
java.io.IOException: java.sql.SQLException: Catalog Error: Table with name "results" already exists!
	at com.github.heuermh.seaeagle.ParquetFormat.columns(ParquetFormat.java:161)
	at com.github.heuermh.seaeagle.SeaEagle.processResults(SeaEagle.java:280)
	at com.github.heuermh.seaeagle.SeaEagle.call(SeaEagle.java:176)
	at com.github.heuermh.seaeagle.SeaEagle.call(SeaEagle.java:61)
	at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
	at picocli.CommandLine.access$1500(CommandLine.java:148)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
	at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
	at picocli.CommandLine.execute(CommandLine.java:2174)
	at com.github.heuermh.seaeagle.SeaEagle.main(SeaEagle.java:338)
Caused by: java.sql.SQLException: Catalog Error: Table with name "results" already exists!
	at org.duckdb.DuckDBNative.duckdb_jdbc_execute(Native Method)
	at org.duckdb.DuckDBPreparedStatement.execute(DuckDBPreparedStatement.java:143)
	at org.duckdb.DuckDBPreparedStatement.execute(DuckDBPreparedStatement.java:197)
	at com.github.heuermh.seaeagle.ParquetFormat.columns(ParquetFormat.java:158)
	... 12 more
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