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

Document about the unsupported gin index cases in known issues #724

Open
priyanshi-yb opened this issue Jan 5, 2023 · 2 comments
Open
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@priyanshi-yb
Copy link
Contributor

priyanshi-yb commented Jan 5, 2023

Issue in some of the gin index type as gin indexes are partially supported by YugabyteDB (yugabyte/yugabyte-db#7850).
For example, Oracle as a sourceDB:
Multi column gin index.
Source Schema -

CREATE TABLE members(
    member_id INT GENERATED BY DEFAULT AS IDENTITY,
    first_name VARCHAR2(100) NOT NULL,
    last_name VARCHAR2(100) NOT NULL,
    gender CHAR(1) NOT NULL,
    dob DATE NOT NULL,
    email VARCHAR2(255) NOT NULL,
    PRIMARY KEY(member_id)
);

CREATE BITMAP INDEX members_gender_bm_index on members(gender,member_id);

Exported Schema -

CREATE TABLE members (
	member_id bigint GENERATED BY DEFAULT AS IDENTITY (START WITH 1 INCREMENT BY 1 MAXVALUE 9223372036854775807 MINVALUE 1 NO CYCLE CACHE 20 ),
	first_name varchar(100) NOT NULL,
	last_name varchar(100) NOT NULL,
	gender char(1) NOT NULL,
	dob timestamp NOT NULL,
	email varchar(255) NOT NULL,
	PRIMARY KEY (member_id)
) ;
CREATE INDEX members_gender_bm_index ON members USING gin(gender, member_id);

Error in import schema -

ERROR: data type character has no default operator class for access method "ybgin" (SQLSTATE 42704)

Workaround is to modify such type of indexes with some supported cases or use other type of indexing as per requirement.

@github-actions github-actions bot added the triage Needs to be triaged label Jan 5, 2023
@priyanshi-yb priyanshi-yb removed the triage Needs to be triaged label Jan 5, 2023
@priyanshi-yb priyanshi-yb self-assigned this Jan 5, 2023
@priyanshi-yb priyanshi-yb added the documentation Improvements or additions to documentation label Jan 6, 2023
@priyanshi-yb
Copy link
Contributor Author

Added this in manual review guideline docs, please update the known issues page @aishwarya24. Thanks

@aishwarya24
Copy link

Resolved in this PR : yugabyte/yugabyte-db#15758

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants