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

Prevent irrelevant output with CSV format #437

Closed
artemklevtsov opened this issue Jan 19, 2024 · 0 comments
Closed

Prevent irrelevant output with CSV format #437

artemklevtsov opened this issue Jan 19, 2024 · 0 comments

Comments

@artemklevtsov
Copy link

Hi,

When SQL query contains DDL operations this appears in the CSV output.

How can I avoid this?

Observed:

USQL_SHOW_HOST_INFORMATION=false usql duckdb:///tmp/test.db --csv --command 'PRAGMA threads=1; SELECT 1 AS column1;'
# PRAGMA
# column1
# 1

Expected:

USQL_SHOW_HOST_INFORMATION=false usql duckdb:///tmp/test.db --csv --command 'PRAGMA threads=1; SELECT 1 AS column1;'
# column1
# 1

The same behavior with other drivers (tested with postgres and create function).

@kenshaw kenshaw closed this as completed in 0d2eb10 Apr 1, 2024
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