Skip to content

fix(gh-copilot): truncate ide and language values that do not fit their columns - #9460

Open
Anurag1428 wants to merge 1 commit into
apache:mainfrom
Anurag1428:fix-copilot-long-language-9459
Open

Anurag1428 wants to merge 1 commit into
apache:mainfrom
Anurag1428:fix-copilot-long-language-9459

Conversation

@Anurag1428

Copy link
Copy Markdown

Summary

The GitHub Copilot plugin stores the ide and language names in varchar(50) columns that are part of the primary key. If the API returns a longer value, saving the row fails with "Data too long for column 'language'" and the whole Copilot collection stops. This is what #9459 reports.

This PR cuts ide and language to 50 characters (on a character

…ir columns

The ide and language columns are varchar(50) and part of the primary key. One longer value from the API made the extractor fail with Data too long for column and stopped the whole collection. Cut those values to 50 characters on a character boundary and log a warning.

Closes apache#9459
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

Successfully merging this pull request may close these issues.

1 participant