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

[YSQL] ltree not working with "UNIQUE" constraints #10488

Open
lei-splashtop opened this issue Nov 4, 2021 · 1 comment
Open

[YSQL] ltree not working with "UNIQUE" constraints #10488

lei-splashtop opened this issue Nov 4, 2021 · 1 comment
Labels
area/ysql Yugabyte SQL (YSQL) kind/enhancement This is an enhancement of an existing feature pgcm priority/medium Medium priority issue

Comments

@lei-splashtop
Copy link

lei-splashtop commented Nov 4, 2021

Jira Link: DB-1303

Description

Env:

OS:

MacOS Monterey 12.0

Chip:

Apple M1 Pro

Docker version:

yugabytedb/yugabyte:2.9.1.0-b140

Steps to reproduce:

docker run -d --name yugabyte -p7001:7000 -p9000:9000 -p5433:5433 -p9042:9042 yugabytedb/yugabyte:latest bin/yugabyted start --daemon=false
docker exec -it yugabyte /home/yugabyte/bin/ysqlsh --echo-queries

Create table without UNIQUE works fine:

CREATE EXTENSION IF NOT EXISTS ltree;
yugabyte=# CREATE TABLE test_not_null (path ltree NOT NULL);
CREATE TABLE test_not_null (path ltree NOT NULL); CREATE TABLE

Create table with UNIQUE constraints will get ERROR:

CREATE TABLE test_unique (path ltree UNIQUE);
ERROR: data type ltree has no default operator class for access method "lsm" HINT: You must specify an operator class for the index or define a default operator class for the data type.

@lei-splashtop lei-splashtop added the area/ysql Yugabyte SQL (YSQL) label Nov 4, 2021
@lei-splashtop
Copy link
Author

lei-splashtop commented Nov 4, 2021

on MacOS with Intel Chip also has this issue

@yugabyte-ci yugabyte-ci added kind/bug This issue is a bug priority/medium Medium priority issue labels Jun 8, 2022
@yugabyte-ci yugabyte-ci added kind/enhancement This is an enhancement of an existing feature and removed kind/bug This issue is a bug labels Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ysql Yugabyte SQL (YSQL) kind/enhancement This is an enhancement of an existing feature pgcm priority/medium Medium priority issue
Projects
Status: No status
Development

No branches or pull requests

3 participants