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

Implicit casting does not work for uuid[] #57226

Closed
martinjankoehler opened this issue Nov 30, 2020 · 2 comments
Closed

Implicit casting does not work for uuid[] #57226

martinjankoehler opened this issue Nov 30, 2020 · 2 comments
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-community Originated from the community X-blathers-triaged blathers was able to find an owner

Comments

@martinjankoehler
Copy link

Describe the problem

Please describe the issue you observed, and any steps we can take to reproduce it:

  • Create a Table with uuid[]
  • Attempt to insert a row using an implicit casting literal for the uuid[] vector, the way it works on PostgreSQL
  • I get a syntax error ERROR: value type string doesn't match type uuid[] of column "liste"

What did you do? Describe in your own words.

CREATE TABLE uuid_test (
    id bigint DEFAULT unique_rowid() PRIMARY KEY,
    liste uuid[]
);

-- BUG: this attempt fails (but works with PostgreSQL)
INSERT INTO "public"."uuid_test"("liste") VALUES('{a16d1e64-06d5-42d7-a899-dbad1b1f4150}') RETURNING "id", "liste";

-- NOTE: this attempt works
INSERT INTO "public"."uuid_test"("liste") VALUES(ARRAY['a16d1e64-06d5-42d7-a899-dbad1b1f4150']) RETURNING "id", "liste";

Environment:

  • CockroachDB version [CCL v20.1.0]
  • Server OS: [x86_64-unknown-linux-gnu, built 2020/05/05 00:07:18, go1.13.9]
  • Client app [http://postico.app]
@blathers-crl
Copy link

blathers-crl bot commented Nov 30, 2020

Hello, I am Blathers. I am here to help you get the issue triaged.

Hoot - a bug! Though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here.

I have CC'd a few people who may be able to assist you:

  • @rafiss (found keywords: postico)

If we have not gotten back to your issue within a few business days, you can try the following:

  • Join our community slack channel and ask on #cockroachdb.
  • Try find someone from here if you know they worked closely on the area and CC them.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@blathers-crl blathers-crl bot added C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-community Originated from the community X-blathers-triaged blathers was able to find an owner labels Nov 30, 2020
@rafiss
Copy link
Collaborator

rafiss commented Nov 30, 2020

Thanks for the issue! This is a duplicate of #54672

We have fixed the issue for CockroachDB v20.2.x, but we will not be able to include this change in any v20.1 releases.

@rafiss rafiss closed this as completed Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-community Originated from the community X-blathers-triaged blathers was able to find an owner
Projects
None yet
Development

No branches or pull requests

2 participants