Skip to content

oetl import does not rename mysql fields #7307

@on-meetsys

Description

@on-meetsys

OrientDB Version: 2.2.17

Java Version: 1.8.0_111

OS: debian 8

Expected behavior

I am importing tables from mysql to orientdb thanks to oetl.sh.
I use the following setup :

{
  "config": {
    "log": "debug"
  },
  "extractor" : {
    "jdbc": { "driver": "com.mysql.jdbc.Driver",
              "url": "jdbc:mysql://localhost/DBFROM",
              "userName": "mysqluser",
              "userPassword": "mysqlpwd",
              "query": "SELECT m.firstname, m.name as lastname FROM member m" }
  },
  "transformers" : [
    {"vertex": { "class":"Member"}}
  ],
  "loader" : {
    "orientdb": {
      "dbType": "graph",
      "dbURL": "remote:localhost/mydb",
      "dbUser": "admin",
      "dbPassword": "admin",
      "serverUser": "root",
      "serverPassword": "root",
      "standardElementConstraints": false,
      "dbAutoCreate": true
    }
  }
}

Actual behavior

In orientdb studio, I query members :
SELECT FROM Member

the result returns members with {firstname, name} fields and not {firstname,lastname}

If I look at Member class, the fields are well {firstname,lastname} though.

It looks like the fields are not the same in the class and in the data.

Steps to reproduce

see before

Metadata

Metadata

Assignees

Labels

buglegacy not used anymore

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions