OrientDB SQL创建边缘查询错误

时间:2016-10-19 20:51:00

标签: orientdb

我正在尝试使用Python脚本(pyorient)在两个顶点之间创建边缘,但是我收到了一个奇怪的错误消息。我正在遵循OrientDB SQL语法,查询如下:

public class MyPatternLayout extends PatternLayout {

    private List<String> test = new ArrayList<>();

    public void addTest(String test) {
        this.test.add(test);
    }

    @Override
    public String doLayout(ILoggingEvent event) {
        return test.stream().collect(Collectors.joining(", ")); //temporary, for testing purposes only
    }
}

我得到的错误信息是:

client.command("Create ExtModToTimePoint from (select from ExtendedModel where name = 'EM') to (select from TimePoint where date = %s)" % today)

有没有人见过这个?

谢谢!

1 个答案:

答案 0 :(得分:4)

正确的命令是CREATE EDGE,你可能错过了EDGE字