druid 无法准确解析SQL语句中的distinct关键词出现的位置

u3r8eeie  于 7个月前  发布在  Druid
关注(0)|答案(2)|浏览(140)

尝试对以下SQL进行解析:
select distinct (id), year_born from writer
发现 distinct关键字总是无法被识别出来,在SQLSelectItem中只能识别 id,而没有distinct的具体信息.
虽然可以通过getDistionOption()的值(2)得知句子中包含了distinct关键词,但无法获知distinct出现在哪个selectItem上.

ibrsph3r

ibrsph3r1#

遇到同样的问题

yebdmbv4

yebdmbv42#

同问

相关问题