Skip to content

语义sql转实际sql时,查询条件中的中文会变成Unicode编码 #156

@phsy

Description

@phsy

Please confirm before submission 在提交之前,请确认

Version 版本

0.7.1

Problem description 问题描述

语义sql转实际sql时,查询条件中的中文会变成Unicode编码,跟踪了一下代码,问题是这个类中:
ai.dat.core.semantic.SemanticSqlConverter
convert(String)方法中,SqlNode sqlNode = ansiSqlParser.parseQuery(semanticSql);获取到的sqlNode里,条件中的中文已经转换成了Unicode编码,但是直到sqlNode2Sql(SqlNode)中转换成实际sql语句后,依然是Unicode编码,并没有转换回来,导致了执行报错。

比如:lower('三公司')变成了LOWER(u&'\4e09\516c\53f8')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions