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

print detail info of “ERROR: String length 34 is larger then element size 32” #26

Closed
amutu opened this issue Apr 8, 2014 · 4 comments

Comments

@amutu
Copy link

amutu commented Apr 8, 2014

I get this error message:
ERROR: String length 34 is larger then element size 32
CONTEXT: PL/pgSQL function xx_load(boolean,text) line 1 at RETURN

It may be some unicode relative but here I think we can print more info such as which column this error happened, add the string value even better.

I write this becasue I have a table with 10 clumns defined as char(32),the table has million rows, it is difficult to find what value cause the error.

@knizhnik
Copy link
Owner

knizhnik commented Apr 8, 2014

I added attribute name to this error message

@amutu
Copy link
Author

amutu commented Apr 8, 2014

thank you very much!
But it looks like I find other bug aoubt this:
the ERROR cause the CS partly load data.When Error happened,there seams no code clean the loaded data.If I append data and get this error,then I will get mess the cs and hard to continue the load action or clean the partly loaded data.

@knizhnik
Copy link
Owner

knizhnik commented Apr 8, 2014

Sorry, IMCS is non-transactional.
If something going wrong during adding values to columnar store, I can just remove all data associated with this table. But I do not want to do it always implicitly. You can do it explicitly using Table_delete() function.

@amutu
Copy link
Author

amutu commented Apr 8, 2014

I see and thank you for your quick response.
I will load the data carefully and add check constraint for the char(n) column.

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

No branches or pull requests

2 participants