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

Locale dependent uppercase of schema prevents db from uploading data with turkish locale #7464

Closed
nihavend opened this issue May 31, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@nihavend
Copy link

nihavend commented May 31, 2017

OrientDB Version: 2.2.20

Java Version: 1.8.0_112

OS: Macos 10.12.5

Expected behavior

File should be uploaded without an error

Actual behavior

Error occurs
ETL process has problem: java.lang.IllegalArgumentException: No enum constant com.orientechnologies.orient.core.metadata.schema.OType.İNTEGER

Steps to reproduce

According to the tutorial at https://orientdb.com/docs/2.2/Import-the-Database-of-Beers.html

  • With turkish region set operating system

  • Download orient db

  • Extract the compressed file

  • Execute the command below with appropriate files

oetl.sh categories.json

Work around

add the jvm parameters in oetl.bat to ORIENTDB_SETTINGS variable
-Duser.language=en -Duser.region=EN

Check for similar bugs and the solutions

http://mattryall.net/blog/2009/02/the-infamous-turkish-locale-bug
https://issues.apache.org/jira/browse/SPARK-20156
https://jira.atlassian.com/browse/CONFSERVER-5931
https://issues.apache.org/jira/browse/AVRO-1493

Thanks to @vezir for reporting the issue

robfrank added a commit to orientechnologies/teleporter that referenced this issue Jun 6, 2017
robfrank added a commit that referenced this issue Jun 6, 2017
@robfrank
Copy link
Contributor

robfrank commented Jun 6, 2017

I've patched the code on 2.2.x and develop branches.
If you want to check with a snapshot you can find them at this location:

https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-community/

it will be released wit 2.2.22 and 3.0.0m2

@nihavend
Copy link
Author

nihavend commented Jun 9, 2017 via email

@robfrank
Copy link
Contributor

robfrank commented Jun 9, 2017

I fixed 3.0 before, should be ok.
But, for sure, if you want/need/have time, check 3.0.0 too.

@robfrank robfrank added this to the 2.2.22 milestone Jun 9, 2017
@robfrank robfrank closed this as completed Jun 9, 2017
G4br13l3 pushed a commit to orientechnologies/teleporter that referenced this issue Jun 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants