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

surfaces/adapter/websocket-api: support COPY TO command #27114

Closed
morsapaes opened this issue May 15, 2024 · 0 comments · Fixed by #27116
Closed

surfaces/adapter/websocket-api: support COPY TO command #27114

morsapaes opened this issue May 15, 2024 · 0 comments · Fixed by #27116
Labels
C-feature Category: new feature or request

Comments

@morsapaes
Copy link
Contributor

morsapaes commented May 15, 2024

Feature request

COPY TO isn't currently supported in the WebSocket API, which prevents users from running the new variation of the command introduced in #7256 (aka s3 bulk exports) via the SQL Shell. This is a pre-requisite to get s3 bulk exports into Private Preview, since otherwise users would need to spin up a separate SQL client like psql to run the new command.

-- SQL Shell
COPY mv TO 's3://mz-to-snow/'
WITH (
    AWS CONNECTION = aws_role_assumption,
    FORMAT = 'csv'
  );

Error: unsupported via this API: COPY (SELECT * FROM mv) TO 's3://mz-to-snow/' WITH (AWS CONNECTION = aws_role_assumption, FORMAT = 'csv')

From a quick chat with @maddyblue, it's possible to support this command variation (just not COPY TO stdout).

@morsapaes morsapaes added the C-feature Category: new feature or request label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: new feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant