简体   繁体   English

OrientDB ETL导入:“跳过”运算符引发异常

[英]OrientDB ETL import: 'skip' operator throws exception

I'm trying to import a .csv file into OrientDB v.2.0.13 with the help of the included ETL scripts. 我正在尝试通过随附的ETL脚本将.csv文件导入OrientDB v.2.0.13。

Now to my problem. 现在到我的问题。 Using the operator 使用运算符

{ "skip": { "expression": "name = '(unassigned)'"} }

within my .json config file throws the following exception: 我的.json配置文件中抛出以下异常:


Exception in thread "main" com.orientechnologies.orient.core.exception.OConfigurationException: Error on creating ETL processor
        at com.orientechnologies.orient.etl.OETLProcessor.parse(OETLProcessor.java:278)
        at com.orientechnologies.orient.etl.OETLProcessor.parse(OETLProcessor.java:186)
        at com.orientechnologies.orient.etl.OETLProcessor.main(OETLProcessor.java:161)
Caused by: java.lang.IllegalArgumentException: Transformer 'skip' not found
        at com.orientechnologies.orient.etl.OETLComponentFactory.getTransformer(OETLComponentFactory.java:141)
        at com.orientechnologies.orient.etl.OETLProcessor.parse(OETLProcessor.java:260)
        ... 2 more

Without the 'skip' operator my import works flawlessly, so I guess the problem isn't the config file. 没有“ skip”运算符,我的导入就可以完美地工作了,所以我想问题不在于配置文件。

Does anyone have an idea what's the problem here? 有谁知道这是什么问题吗?

Cheers! 干杯!

I found the documentation not updated, please use the FLOW transformer . 我发现文档未更新,请使用FLOW变压器 Example: 例:

{ "flow": { "if": "name is null", "operation" : "skip" } }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM