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

Comments

Projects
None yet
3 participants
@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

@luigidellaquila luigidellaquila added the bug label Jun 5, 2017

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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Author

nihavend commented Jun 9, 2017

@robfrank

This comment has been minimized.

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 Jun 9, 2017

G4br13l3 added 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
You can’t perform that action at this time.