Skip to content
This repository was archived by the owner on Oct 8, 2019. It is now read-only.
This repository was archived by the owner on Oct 8, 2019. It is now read-only.

why use order by in sql by hive ,not find any tables? #9

@89lovelc

Description

@89lovelc
        String sql = "select id,name from food  order by id";
        TGSqlParser sqlparser = new TGSqlParser(EDbVendor.dbvhive));
	sqlparser.setSqltext(sql);
	int ret = sqlparser.parse();
        if (ret != 0) {
			LOG.error(sqlparser.getErrormessage());
			return null;
	}
// .....

it print syntax error, state:335(10102) near: by(1,33) no_root_node(-1000) near: no root node(0,0) null

but EDbVendor.dbvmysql ,it can pass , why? please

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions