Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Shardingsphere
提交
c1d4faed
Shardingsphere
项目概览
apache
/
Shardingsphere
通知
56
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Shardingsphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c1d4faed
编写于
1月 28, 2019
作者:
T
tristaZero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify select.xml
上级
e80c6cca
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
159 addition
and
159 deletion
+159
-159
sharding-core/src/test/resources/parser/select.xml
sharding-core/src/test/resources/parser/select.xml
+51
-51
sharding-core/src/test/resources/parser/select_aggregate.xml
sharding-core/src/test/resources/parser/select_aggregate.xml
+12
-12
sharding-core/src/test/resources/parser/select_expression.xml
...ding-core/src/test/resources/parser/select_expression.xml
+3
-3
sharding-core/src/test/resources/parser/select_group_by.xml
sharding-core/src/test/resources/parser/select_group_by.xml
+14
-14
sharding-core/src/test/resources/parser/select_or.xml
sharding-core/src/test/resources/parser/select_or.xml
+9
-9
sharding-core/src/test/resources/parser/select_order_by.xml
sharding-core/src/test/resources/parser/select_order_by.xml
+18
-18
sharding-core/src/test/resources/parser/select_pagination.xml
...ding-core/src/test/resources/parser/select_pagination.xml
+21
-21
sharding-core/src/test/resources/parser/select_pagination_group_by_order_by.xml
.../resources/parser/select_pagination_group_by_order_by.xml
+16
-16
sharding-core/src/test/resources/parser/select_relation.xml
sharding-core/src/test/resources/parser/select_relation.xml
+10
-10
sharding-core/src/test/resources/parser/select_sub_query.xml
sharding-core/src/test/resources/parser/select_sub_query.xml
+5
-5
未找到文件。
sharding-core/src/test/resources/parser/select.xml
浏览文件 @
c1d4faed
...
...
@@ -7,7 +7,7 @@
<table
name=
"t_order"
alias=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"22"
original-literals
=
"t_order"
/>
<table-token
start-index=
"22"
table-name
=
"t_order"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -26,7 +26,7 @@
<table
name=
"t_order_item"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"14"
table-name
=
"t_order_item"
/>
</tokens>
<order-by-columns>
<order-by-column
name=
"item_id"
order-direction=
"ASC"
/>
...
...
@@ -38,7 +38,7 @@
<table
name=
"t_order_item"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"14"
table-name
=
"t_order_item"
/>
</tokens>
<order-by-columns>
<order-by-column
name=
"item_id"
order-direction=
"ASC"
/>
...
...
@@ -50,7 +50,7 @@
<table
name=
"t_order_item"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"14"
table-name
=
"t_order_item"
/>
</tokens>
<order-by-columns>
<order-by-column
name=
"item_id"
order-direction=
"ASC"
/>
...
...
@@ -62,7 +62,7 @@
<table
name=
"t_order_item"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"14"
table-name
=
"t_order_item"
/>
</tokens>
<order-by-columns>
<order-by-column
name=
"item_id"
order-direction=
"ASC"
/>
...
...
@@ -74,7 +74,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -93,7 +93,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -112,7 +112,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -137,7 +137,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -163,7 +163,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -187,7 +187,7 @@
<table
name=
"t_order"
alias=
"o"
/>
</tables>
<tokens>
<table-token
start-index=
"37"
original-literals
=
"t_order"
/>
<table-token
start-index=
"37"
table-name
=
"t_order"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -214,8 +214,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"31"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"31"
table-name
=
"t_order_item"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -240,8 +240,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"31"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"31"
table-name
=
"t_order_item"
/>
</tokens>
<order-by-columns>
<order-by-column
owner=
"i"
name=
"item_id"
order-direction=
"ASC"
/>
...
...
@@ -254,8 +254,8 @@
<table
name=
"T_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"T_ORDER"
/>
<table-token
start-index=
"31"
original-literals
=
"T_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"T_ORDER"
/>
<table-token
start-index=
"31"
table-name
=
"T_order_item"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -280,8 +280,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"31"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"31"
table-name
=
"t_order_item"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -306,8 +306,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"31"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"31"
table-name
=
"t_order_item"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -332,8 +332,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"31"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"31"
table-name
=
"t_order_item"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -358,8 +358,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"31"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"31"
table-name
=
"t_order_item"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -383,7 +383,7 @@
<table
name=
"t_order_item"
alias=
"length"
/>
</tables>
<tokens>
<table-token
start-index=
"36"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"36"
table-name
=
"t_order_item"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -400,8 +400,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"56"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"56"
table-name
=
"t_order_item"
/>
<index-token
start-index=
"38"
stop-index=
"48"
table-name=
"t_order"
/>
</tokens>
<or-condition>
...
...
@@ -418,7 +418,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -437,7 +437,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -456,7 +456,7 @@
<table
name=
"t_place"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_place"
/>
<table-token
start-index=
"14"
table-name
=
"t_place"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -472,7 +472,7 @@
<table
name=
"t_order_item"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals=
""t_order_item
""
/>
<table-token
start-index=
"14"
table-name=
"t_order_item"
left-delimiter=
"""
right-delimiter=
"
""
/>
</tokens>
<order-by-columns>
<order-by-column
name=
"item_id"
order-direction=
"ASC"
/>
...
...
@@ -491,7 +491,7 @@
</distinct-select-item>
</select-items>
<tokens>
<table-token
start-index=
"29"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"29"
table-name
=
"t_order_item"
/>
</tokens>
<order-by-columns>
<order-by-column
name=
"item_id"
order-direction=
"ASC"
/>
...
...
@@ -512,7 +512,7 @@
</distinct-select-item>
</select-items>
<tokens>
<table-token
start-index=
"47"
original-literals
=
"t_order"
/>
<table-token
start-index=
"47"
table-name
=
"t_order"
/>
</tokens>
<order-by-columns>
<order-by-column
name=
"order_id"
order-direction=
"ASC"
/>
...
...
@@ -530,7 +530,7 @@
</distinct-select-item>
</select-items>
<tokens>
<table-token
start-index=
"23"
original-literals
=
"t_order"
/>
<table-token
start-index=
"23"
table-name
=
"t_order"
/>
</tokens>
<order-by-columns>
<order-by-column
name=
"order_id"
order-direction=
"ASC"
/>
...
...
@@ -547,7 +547,7 @@
</aggregation-select-items>
</select-items>
<tokens>
<table-token
start-index=
"37"
original-literals
=
"t_order"
/>
<table-token
start-index=
"37"
table-name
=
"t_order"
/>
<aggregation-distinct-token
start-index=
"7"
stop-index=
"28"
column-name=
"order_id"
alias=
"s"
/>
</tokens>
</parser-result>
...
...
@@ -562,7 +562,7 @@
</aggregation-select-items>
</select-items>
<tokens>
<table-token
start-index=
"39"
original-literals
=
"t_order"
/>
<table-token
start-index=
"39"
table-name
=
"t_order"
/>
<aggregation-distinct-token
start-index=
"7"
stop-index=
"30"
column-name=
"order_id"
alias=
"c"
/>
</tokens>
</parser-result>
...
...
@@ -580,7 +580,7 @@
</aggregation-select-items>
</select-items>
<tokens>
<table-token
start-index=
"35"
original-literals
=
"t_order"
/>
<table-token
start-index=
"35"
table-name
=
"t_order"
/>
<aggregation-distinct-token
start-index=
"7"
stop-index=
"28"
column-name=
"order_id"
alias=
"AGGREGATION_DISTINCT_DERIVED_0"
/>
</tokens>
</parser-result>
...
...
@@ -596,7 +596,7 @@
</aggregation-select-items>
</select-items>
<tokens>
<table-token
start-index=
"61"
original-literals
=
"t_order"
/>
<table-token
start-index=
"61"
table-name
=
"t_order"
/>
<aggregation-distinct-token
start-index=
"7"
stop-index=
"30"
column-name=
"order_id"
alias=
"AGGREGATION_DISTINCT_DERIVED_0"
/>
<aggregation-distinct-token
start-index=
"33"
stop-index=
"54"
column-name=
"order_id"
alias=
"AGGREGATION_DISTINCT_DERIVED_1"
/>
</tokens>
...
...
@@ -618,7 +618,7 @@
<order-by-column
name=
"order_id"
order-direction=
"ASC"
/>
</order-by-columns>
<tokens>
<table-token
start-index=
"49"
original-literals
=
"t_order"
/>
<table-token
start-index=
"49"
table-name
=
"t_order"
/>
<aggregation-distinct-token
start-index=
"17"
stop-index=
"40"
column-name=
"order_id"
alias=
"c"
/>
</tokens>
</parser-result>
...
...
@@ -639,7 +639,7 @@
<order-by-column
name=
"order_id"
order-direction=
"ASC"
/>
</order-by-columns>
<tokens>
<table-token
start-index=
"49"
original-literals
=
"t_order"
/>
<table-token
start-index=
"49"
table-name
=
"t_order"
/>
<aggregation-distinct-token
start-index=
"7"
stop-index=
"30"
column-name=
"order_id"
alias=
"c"
/>
</tokens>
</parser-result>
...
...
@@ -656,7 +656,7 @@
</distinct-select-item>
</select-items>
<tokens>
<table-token
start-index=
"30"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"30"
table-name
=
"t_order_item"
/>
</tokens>
<order-by-columns>
<order-by-column
name=
"item_id"
order-direction=
"ASC"
/>
...
...
@@ -673,7 +673,7 @@
</aggregation-select-items>
</select-items>
<tokens>
<table-token
start-index=
"49"
original-literals
=
"t_order"
/>
<table-token
start-index=
"49"
table-name
=
"t_order"
/>
<aggregation-distinct-token
start-index=
"7"
stop-index=
"40"
column-name=
"user_id+order_id"
alias=
"c"
/>
</tokens>
</parser-result>
...
...
@@ -690,7 +690,7 @@
</aggregation-select-items>
</select-items>
<tokens>
<table-token
start-index=
"77"
original-literals
=
"t_order"
/>
<table-token
start-index=
"77"
table-name
=
"t_order"
/>
<aggregation-distinct-token
start-index=
"7"
stop-index=
"28"
column-name=
"order_id"
alias=
"AGGREGATION_DISTINCT_DERIVED_0"
/>
<aggregation-distinct-token
start-index=
"30"
stop-index=
"53"
column-name=
"order_id"
alias=
"AGGREGATION_DISTINCT_DERIVED_1"
/>
</tokens>
...
...
@@ -701,7 +701,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
skipped-schema-name-length =
"4"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
skipped-schema-name-length =
"4"
table-name
=
"t_order"
/>
</tokens>
</parser-result>
...
...
@@ -710,7 +710,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
</parser-result>
...
...
@@ -719,7 +719,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
</parser-result>
...
...
@@ -728,7 +728,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"83"
original-literals
=
"t_order"
/>
<table-token
start-index=
"83"
table-name
=
"t_order"
/>
</tokens>
</parser-result>
...
...
@@ -737,7 +737,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"77"
original-literals
=
"t_order"
/>
<table-token
start-index=
"77"
table-name
=
"t_order"
/>
</tokens>
</parser-result>
...
...
@@ -746,7 +746,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"31"
original-literals
=
"t_order"
/>
<table-token
start-index=
"31"
table-name
=
"t_order"
/>
</tokens>
</parser-result>
...
...
@@ -755,7 +755,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"31"
original-literals
=
"t_order"
/>
<table-token
start-index=
"31"
table-name
=
"t_order"
/>
</tokens>
</parser-result>
</parser-result-sets>
sharding-core/src/test/resources/parser/select_aggregate.xml
浏览文件 @
c1d4faed
...
...
@@ -5,7 +5,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"40"
original-literals
=
"t_order"
/>
<table-token
start-index=
"40"
table-name
=
"t_order"
/>
</tokens>
<select-items>
<aggregation-select-items>
...
...
@@ -19,7 +19,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"37"
original-literals
=
"t_order"
/>
<table-token
start-index=
"37"
table-name
=
"t_order"
/>
</tokens>
<select-items>
<aggregation-select-items>
...
...
@@ -33,7 +33,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"37"
original-literals
=
"t_order"
/>
<table-token
start-index=
"37"
table-name
=
"t_order"
/>
</tokens>
<select-items>
<aggregation-select-items>
...
...
@@ -47,7 +47,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"37"
original-literals
=
"t_order"
/>
<table-token
start-index=
"37"
table-name
=
"t_order"
/>
</tokens>
<select-items>
<aggregation-select-items>
...
...
@@ -61,7 +61,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"40"
original-literals
=
"t_order"
/>
<table-token
start-index=
"40"
table-name
=
"t_order"
/>
</tokens>
<select-items>
<aggregation-select-items>
...
...
@@ -75,7 +75,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"40"
original-literals
=
"t_order"
/>
<table-token
start-index=
"40"
table-name
=
"t_order"
/>
</tokens>
<select-items>
<aggregation-select-items>
...
...
@@ -89,7 +89,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"40"
original-literals
=
"t_order"
/>
<table-token
start-index=
"40"
table-name
=
"t_order"
/>
<items-token
begin-position=
"35"
>
<items>
<item>
COUNT(user_id) AS AVG_DERIVED_COUNT_0
</item>
...
...
@@ -113,8 +113,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"36"
original-literals
=
"t_order"
/>
<table-token
start-index=
"47"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"36"
table-name
=
"t_order"
/>
<table-token
start-index=
"47"
table-name
=
"t_order_item"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -141,8 +141,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"36"
original-literals
=
"t_order"
/>
<table-token
start-index=
"51"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"36"
table-name
=
"t_order"
/>
<table-token
start-index=
"51"
table-name
=
"t_order_item"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -168,7 +168,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"46"
original-literals
=
"t_order"
/>
<table-token
start-index=
"46"
table-name
=
"t_order"
/>
</tokens>
<select-items>
<aggregation-select-items>
...
...
sharding-core/src/test/resources/parser/select_expression.xml
浏览文件 @
c1d4faed
...
...
@@ -5,7 +5,7 @@
<table
name=
"t_order"
alias=
"o"
/>
</tables>
<tokens>
<table-token
start-index=
"38"
original-literals
=
"t_order"
/>
<table-token
start-index=
"38"
table-name
=
"t_order"
/>
<items-token
begin-position=
"33"
>
<items>
<item>
o.order_id AS ORDER_BY_DERIVED_0
</item>
...
...
@@ -22,7 +22,7 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"51"
original-literals=
"`t_order_item
`"
/>
<table-token
start-index=
"51"
table-name=
"t_order_item"
left-delimiter=
"`"
right-delimiter=
"
`"
/>
</tokens>
<order-by-columns>
<order-by-column
name=
"DATE(i.creation_date)"
order-direction=
"DESC"
alias=
"creation_date"
/>
...
...
@@ -34,7 +34,7 @@
<table
name=
"t_order_item"
alias=
"t"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"14"
table-name
=
"t_order_item"
/>
</tokens>
<or-condition>
<and-condition>
...
...
sharding-core/src/test/resources/parser/select_group_by.xml
浏览文件 @
c1d4faed
...
...
@@ -5,7 +5,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"49"
original-literals
=
"t_order"
/>
<table-token
start-index=
"49"
table-name
=
"t_order"
/>
</tokens>
<select-items>
<aggregation-select-items>
...
...
@@ -25,7 +25,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"53"
original-literals
=
"t_order"
/>
<table-token
start-index=
"53"
table-name
=
"t_order"
/>
</tokens>
<select-items>
<aggregation-select-items>
...
...
@@ -45,7 +45,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"51"
original-literals
=
"t_order"
/>
<table-token
start-index=
"51"
table-name
=
"t_order"
/>
</tokens>
<select-items>
<aggregation-select-items>
...
...
@@ -65,7 +65,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"51"
original-literals
=
"t_order"
/>
<table-token
start-index=
"51"
table-name
=
"t_order"
/>
</tokens>
<select-items>
<aggregation-select-items>
...
...
@@ -85,7 +85,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"49"
original-literals
=
"t_order"
/>
<table-token
start-index=
"49"
table-name
=
"t_order"
/>
<items-token
begin-position=
"44"
>
<items>
<item>
COUNT(order_id) AS AVG_DERIVED_COUNT_0
</item>
...
...
@@ -114,7 +114,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"49"
original-literals
=
"t_order"
/>
<table-token
start-index=
"49"
table-name
=
"t_order"
/>
</tokens>
<select-items>
<aggregation-select-items>
...
...
@@ -135,8 +135,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"36"
original-literals
=
"t_order"
/>
<table-token
start-index=
"51"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"36"
table-name
=
"t_order"
/>
<table-token
start-index=
"51"
table-name
=
"t_order_item"
/>
<items-token
begin-position=
"31"
>
<items>
<item>
o.user_id AS GROUP_BY_DERIVED_0
</item>
...
...
@@ -174,7 +174,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"20"
original-literals
=
"t_order"
/>
<table-token
start-index=
"20"
table-name
=
"t_order"
/>
<row-count-token
row-count=
"5"
begin-position=
"68"
/>
</tokens>
<group-by-columns>
...
...
@@ -191,7 +191,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"49"
original-literals
=
"t_order"
/>
<table-token
start-index=
"49"
table-name
=
"t_order"
/>
<row-count-token
row-count=
"5"
begin-position=
"103"
/>
</tokens>
<select-items>
...
...
@@ -213,7 +213,7 @@
<table
name=
"t_order"
alias=
"o"
/>
</tables>
<tokens>
<table-token
start-index=
"26"
original-literals
=
"t_order"
/>
<table-token
start-index=
"26"
table-name
=
"t_order"
/>
</tokens>
<group-by-columns>
<group-by-column
name=
"user_id"
owner=
"o"
alias=
"uid"
order-direction=
"ASC"
/>
...
...
@@ -228,7 +228,7 @@
<table
name=
"t_order_item"
/>
</tables>
<tokens>
<table-token
start-index=
"91"
original-literals=
"`t_order_item
`"
/>
<table-token
start-index=
"91"
table-name=
"t_order_item"
left-delimiter=
"`"
right-delimiter=
"
`"
/>
<order-by-token
placeholder-begin-position=
"178"
literal-begin-position=
"184"
/>
</tokens>
<or-condition>
...
...
@@ -257,7 +257,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"58"
original-literals
=
"t_order"
/>
<table-token
start-index=
"58"
table-name
=
"t_order"
/>
<order-by-token
placeholder-begin-position=
"80"
literal-begin-position=
"80"
/>
</tokens>
<select-items>
...
...
@@ -278,7 +278,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"53"
original-literals
=
"t_order"
/>
<table-token
start-index=
"53"
table-name
=
"t_order"
/>
</tokens>
<select-items>
<aggregation-select-items>
...
...
sharding-core/src/test/resources/parser/select_or.xml
浏览文件 @
c1d4faed
...
...
@@ -5,7 +5,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -26,7 +26,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -47,7 +47,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
</parser-result>
...
...
@@ -56,7 +56,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -80,7 +80,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -124,8 +124,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"31"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"31"
table-name
=
"t_order_item"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -153,8 +153,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"31"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"31"
table-name
=
"t_order_item"
/>
</tokens>
<or-condition>
<and-condition>
...
...
sharding-core/src/test/resources/parser/select_order_by.xml
浏览文件 @
c1d4faed
...
...
@@ -5,7 +5,7 @@
<table
name=
"t_order"
alias=
"o"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
<order-by-columns>
<order-by-column
owner=
"o"
name=
"order_id"
order-direction=
"ASC"
/>
...
...
@@ -19,8 +19,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"27"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"27"
table-name
=
"t_order_item"
/>
<items-token
begin-position=
"11"
>
<items>
<item>
o.order_id AS ORDER_BY_DERIVED_0
</item>
...
...
@@ -38,7 +38,7 @@
<table
name=
"t_order"
alias=
"o"
/>
</tables>
<tokens>
<table-token
start-index=
"40"
original-literals
=
"t_order"
/>
<table-token
start-index=
"40"
table-name
=
"t_order"
/>
</tokens>
<order-by-columns>
<order-by-column
owner=
"o"
name=
"order_id"
alias=
"gen_order_id_"
order-direction=
"ASC"
/>
...
...
@@ -51,8 +51,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"27"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"27"
table-name
=
"t_order_item"
/>
<items-token
begin-position=
"11"
>
<items>
<item>
o.order_id AS ORDER_BY_DERIVED_0
</item>
...
...
@@ -72,7 +72,7 @@
<table
name=
"t_order"
alias=
"o"
/>
</tables>
<tokens>
<table-token
start-index=
"40"
original-literals
=
"t_order"
/>
<table-token
start-index=
"40"
table-name
=
"t_order"
/>
</tokens>
<order-by-columns>
<order-by-column
owner=
"o"
name=
"order_id"
alias=
"gen_order_id_"
order-direction=
"ASC"
/>
...
...
@@ -85,7 +85,7 @@
<table
name=
"t_order"
alias=
"o"
/>
</tables>
<tokens>
<table-token
start-index=
"40"
original-literals
=
"t_order"
/>
<table-token
start-index=
"40"
table-name
=
"t_order"
/>
</tokens>
<order-by-columns>
<order-by-column
owner=
"o"
name=
"order_id"
alias=
"gen_order_id_"
order-direction=
"ASC"
/>
...
...
@@ -97,7 +97,7 @@
<table
name=
"t_order"
alias=
"o"
/>
</tables>
<tokens>
<table-token
start-index=
"29"
original-literals
=
"t_order"
/>
<table-token
start-index=
"29"
table-name
=
"t_order"
/>
</tokens>
<order-by-columns>
<order-by-column
owner=
"o"
name=
"order_id"
order-direction=
"ASC"
/>
...
...
@@ -109,7 +109,7 @@
<table
name=
"t_order"
alias=
"o"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
</tokens>
<order-by-columns>
<order-by-column
owner=
"o"
name=
"order_id"
order-direction=
"ASC"
/>
...
...
@@ -121,7 +121,7 @@
<table
name=
"t_order"
alias=
"o"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
<order-by-columns>
<order-by-column
name=
"order_id"
order-direction=
"ASC"
/>
...
...
@@ -134,7 +134,7 @@
<!--<table name="t_order" alias="o" />-->
<!--</tables>-->
<!--<tokens>-->
<!--<table-token start-index="14"
original-literals
="t_order" />-->
<!--<table-token start-index="14"
table-name
="t_order" />-->
<!--</tokens>-->
<!--<order-by-columns>-->
<!--<order-by-column name="order_id" order-direction="ASC" />-->
...
...
@@ -146,9 +146,9 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"7"
original-literals
=
"t_order"
/>
<table-token
start-index=
"22"
original-literals
=
"t_order"
/>
<table-token
start-index=
"39"
original-literals
=
"t_order"
/>
<table-token
start-index=
"7"
table-name
=
"t_order"
/>
<table-token
start-index=
"22"
table-name
=
"t_order"
/>
<table-token
start-index=
"39"
table-name
=
"t_order"
/>
</tokens>
<order-by-columns>
<order-by-column
owner=
"t_order"
name=
"order_id"
order-direction=
"ASC"
/>
...
...
@@ -160,7 +160,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
</tokens>
<order-by-columns>
<order-by-column
name=
"order_id"
order-direction=
"ASC"
/>
...
...
@@ -173,8 +173,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"21"
original-literals
=
"t_order"
/>
<table-token
start-index=
"36"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"21"
table-name
=
"t_order"
/>
<table-token
start-index=
"36"
table-name
=
"t_order_item"
/>
</tokens>
<order-by-columns>
<order-by-column
name=
"item_id"
order-direction=
"ASC"
/>
...
...
sharding-core/src/test/resources/parser/select_pagination.xml
浏览文件 @
c1d4faed
...
...
@@ -6,8 +6,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"31"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"31"
table-name
=
"t_order_item"
/>
<offset-token
begin-position=
"188"
offset=
"5"
/>
</tokens>
<or-condition>
...
...
@@ -34,8 +34,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"31"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"31"
table-name
=
"t_order_item"
/>
<row-count-token
begin-position=
"187"
row-count=
"5"
/>
</tokens>
<or-condition>
...
...
@@ -62,8 +62,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals=
"`t_order
`"
/>
<table-token
start-index=
"33"
original-literals=
"`t_order_item
`"
/>
<table-token
start-index=
"16"
table-name=
"t_order"
left-delimiter=
"`"
right-delimiter=
"
`"
/>
<table-token
start-index=
"33"
table-name=
"t_order_item"
left-delimiter=
"`"
right-delimiter=
"
`"
/>
<offset-token
begin-position=
"195"
offset=
"5"
/>
<row-count-token
begin-position=
"198"
row-count=
"3"
/>
</tokens>
...
...
@@ -91,8 +91,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"167"
original-literals
=
"t_order"
/>
<table-token
start-index=
"182"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"167"
table-name
=
"t_order"
/>
<table-token
start-index=
"182"
table-name
=
"t_order_item"
/>
<row-count-token
begin-position=
"27"
row-count=
"3"
/>
</tokens>
<or-condition>
...
...
@@ -119,8 +119,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"31"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"31"
table-name
=
"t_order_item"
/>
<offset-token
begin-position=
"188"
offset=
"5"
/>
<row-count-token
begin-position=
"196"
row-count=
"3"
/>
</tokens>
...
...
@@ -148,8 +148,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"167"
original-literals
=
"t_order"
/>
<table-token
start-index=
"182"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"167"
table-name
=
"t_order"
/>
<table-token
start-index=
"182"
table-name
=
"t_order_item"
/>
<offset-token
begin-position=
"338"
offset=
"6"
/>
<row-count-token
begin-position=
"27"
row-count=
"3"
/>
</tokens>
...
...
@@ -177,8 +177,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"167"
original-literals
=
"t_order"
/>
<table-token
start-index=
"182"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"167"
table-name
=
"t_order"
/>
<table-token
start-index=
"182"
table-name
=
"t_order_item"
/>
<offset-token
begin-position=
"339"
offset=
"6"
/>
<row-count-token
begin-position=
"27"
row-count=
"3"
/>
</tokens>
...
...
@@ -206,8 +206,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"146"
original-literals
=
"t_order"
/>
<table-token
start-index=
"167"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"146"
table-name
=
"t_order"
/>
<table-token
start-index=
"167"
table-name
=
"t_order_item"
/>
<items-token
begin-position=
"141"
>
<items>
<item>
i.item_id AS ORDER_BY_DERIVED_0
</item>
...
...
@@ -239,8 +239,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"146"
original-literals
=
"t_order"
/>
<table-token
start-index=
"167"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"146"
table-name
=
"t_order"
/>
<table-token
start-index=
"167"
table-name
=
"t_order_item"
/>
<items-token
begin-position=
"141"
>
<items>
<item>
i.item_id AS ORDER_BY_DERIVED_0
</item>
...
...
@@ -273,8 +273,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"146"
original-literals
=
"t_order"
/>
<table-token
start-index=
"167"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"146"
table-name
=
"t_order"
/>
<table-token
start-index=
"167"
table-name
=
"t_order_item"
/>
<items-token
begin-position=
"141"
>
<items>
<item>
i.item_id AS ORDER_BY_DERIVED_0
</item>
...
...
@@ -306,7 +306,7 @@
<table
name=
"t_order"
/>
</tables>
<tokens>
<table-token
start-index=
"14"
original-literals
=
"t_order"
/>
<table-token
start-index=
"14"
table-name
=
"t_order"
/>
<row-count-token
begin-position=
"38"
row-count=
"20"
/>
</tokens>
<order-by-columns>
...
...
sharding-core/src/test/resources/parser/select_pagination_group_by_order_by.xml
浏览文件 @
c1d4faed
...
...
@@ -6,8 +6,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"22"
original-literals
=
"t_order"
/>
<table-token
start-index=
"37"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"22"
table-name
=
"t_order"
/>
<table-token
start-index=
"37"
table-name
=
"t_order_item"
/>
<items-token
begin-position=
"17"
>
<items>
<item>
i.item_id AS ORDER_BY_DERIVED_0
</item>
...
...
@@ -44,8 +44,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"22"
original-literals
=
"t_order"
/>
<table-token
start-index=
"37"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"22"
table-name
=
"t_order"
/>
<table-token
start-index=
"37"
table-name
=
"t_order_item"
/>
<offset-token
begin-position=
"212"
offset=
"5"
/>
<row-count-token
begin-position=
"215"
row-count=
"3"
/>
<items-token
begin-position=
"17"
>
...
...
@@ -81,8 +81,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"165"
original-literals
=
"t_order"
/>
<table-token
start-index=
"180"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"165"
table-name
=
"t_order"
/>
<table-token
start-index=
"180"
table-name
=
"t_order_item"
/>
<offset-token
begin-position=
"355"
offset=
"6"
/>
<row-count-token
begin-position=
"26"
row-count=
"3"
/>
</tokens>
...
...
@@ -113,8 +113,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"167"
original-literals
=
"t_order"
/>
<table-token
start-index=
"182"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"167"
table-name
=
"t_order"
/>
<table-token
start-index=
"182"
table-name
=
"t_order_item"
/>
<offset-token
begin-position=
"357"
offset=
"6"
/>
<row-count-token
begin-position=
"27"
row-count=
"3"
/>
</tokens>
...
...
@@ -145,8 +145,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"165"
original-literals
=
"t_order"
/>
<table-token
start-index=
"180"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"165"
table-name
=
"t_order"
/>
<table-token
start-index=
"180"
table-name
=
"t_order_item"
/>
<items-token
begin-position=
"160"
>
<items>
<item>
i.user_id AS GROUP_BY_DERIVED_0
</item>
...
...
@@ -182,8 +182,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"167"
original-literals
=
"t_order"
/>
<table-token
start-index=
"182"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"167"
table-name
=
"t_order"
/>
<table-token
start-index=
"182"
table-name
=
"t_order_item"
/>
<items-token
begin-position=
"162"
>
<items>
<item>
i.user_id AS GROUP_BY_DERIVED_0
</item>
...
...
@@ -219,8 +219,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"146"
original-literals
=
"t_order"
/>
<table-token
start-index=
"167"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"146"
table-name
=
"t_order"
/>
<table-token
start-index=
"167"
table-name
=
"t_order_item"
/>
<items-token
begin-position=
"141"
>
<items>
<item>
i.item_id AS ORDER_BY_DERIVED_0
</item>
...
...
@@ -257,8 +257,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"146"
original-literals
=
"t_order"
/>
<table-token
start-index=
"167"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"146"
table-name
=
"t_order"
/>
<table-token
start-index=
"167"
table-name
=
"t_order_item"
/>
<items-token
begin-position=
"141"
>
<items>
<item>
i.item_id AS ORDER_BY_DERIVED_0
</item>
...
...
sharding-core/src/test/resources/parser/select_relation.xml
浏览文件 @
c1d4faed
...
...
@@ -6,8 +6,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"37"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"37"
table-name
=
"t_order_item"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -24,12 +24,12 @@
<table
name=
"t_order_item"
/>
</tables>
<tokens>
<table-token
start-index=
"7"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"27"
original-literals
=
"t_order"
/>
<table-token
start-index=
"40"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"56"
original-literals
=
"t_order"
/>
<table-token
start-index=
"75"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"103"
original-literals
=
"t_order"
/>
<table-token
start-index=
"7"
table-name
=
"t_order_item"
/>
<table-token
start-index=
"27"
table-name
=
"t_order"
/>
<table-token
start-index=
"40"
table-name
=
"t_order_item"
/>
<table-token
start-index=
"56"
table-name
=
"t_order"
/>
<table-token
start-index=
"75"
table-name
=
"t_order_item"
/>
<table-token
start-index=
"103"
table-name
=
"t_order"
/>
</tokens>
<or-condition>
<and-condition>
...
...
@@ -46,8 +46,8 @@
<table
name=
"t_order_item"
alias=
"i"
/>
</tables>
<tokens>
<table-token
start-index=
"16"
original-literals
=
"t_order"
/>
<table-token
start-index=
"31"
original-literals
=
"t_order_item"
/>
<table-token
start-index=
"16"
table-name
=
"t_order"
/>
<table-token
start-index=
"31"
table-name
=
"t_order_item"
/>
</tokens>
<or-condition>
<and-condition>
...
...
sharding-core/src/test/resources/parser/select_sub_query.xml
浏览文件 @
c1d4faed
...
...
@@ -6,7 +6,7 @@
<table name="t_order" alias="o" />
</tables>
<tokens>
<table-token start-index="33"
original-literals
="t_order" />
<table-token start-index="33"
table-name
="t_order" />
</tokens>
<or-condition>
<and-condition>
...
...
@@ -25,8 +25,8 @@
<table name="t_order_item" alias="i" />
</tables>
<tokens>
<table-token start-index="33"
original-literals
="t_order" />
<table-token start-index="44"
original-literals
="t_order_item" />
<table-token start-index="33"
table-name
="t_order" />
<table-token start-index="44"
table-name
="t_order_item" />
</tokens>
<conditions>
<condition column-name="order_id" table-name="t_order" operator="IN">
...
...
@@ -42,7 +42,7 @@
<table name="t_order"/>
</tables>
<tokens>
<table-token start-index="52"
original-literals
="t_order" />
<table-token start-index="52"
table-name
="t_order" />
</tokens>
<aggregation-select-items>
<aggregation-select-item type="COUNT" inner-expression="(1)" alias="orders_count" />
...
...
@@ -54,7 +54,7 @@
<table name="t_order_item"/>
</tables>
<tokens>
<table-token start-index="64"
original-literals
="t_order_item" />
<table-token start-index="64"
table-name
="t_order_item" />
</tokens>
<aggregation-select-items>
<aggregation-select-item type="COUNT" inner-expression="(1)" alias="order_items_count" />
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录