Skip to content

Commit

Permalink
add else GJYL case (apache#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
zy-kkk committed Aug 2, 2022
1 parent b3c0d1a commit dfc0017
Show file tree
Hide file tree
Showing 5 changed files with 253 additions and 1 deletion.
13 changes: 13 additions & 0 deletions regression-test/data/usercases/GJYL/sql/q02.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !q02 --
Falkland Islands (Malvinas) 275410362471796558.262009 464188807637615076.167783 -0.685444235 \N \N 1 8 0.125 684768510547077824.632599 \N \N \N \N \N
Ecuador 426186452067335318.920333 297843139409974893.645518 0.301143577 753430396080255190.469676 2.529621456 1 8 0.125 115265936173552103.354532 \N \N \N \N \N
Korea, South 169740003775935784.154575 986523851285098835.409816 -4.811970245 \N \N 1 8 0.125 952471551410679665.199385 \N \N \N \N \N
Bouvet Island 612388531422127367.193135 211922476655613156.102173 0.653941141 396936096172275861.775201 1.873024997 1 8 0.125 803653287551392315.49537 \N \N \N \N \N
Saint Helena 411030467281080364.353021 675803169469567141.56023 -0.644168068 557960726479947643.519429 0.825626087 1 8 0.125 337195845182608911.800639 \N \N \N \N \N
Palestinian Territory, Occupied 165790455106420072.621526 114322711599186368.394152 0.31043852 995460015878044266.675091 8.707456305 1 8 0.125 169021269832716737.205398 \N \N \N \N \N
Nicaragua 338720633413698437.554216 25352198485672078.921783 0.925153073 637247024661765911.153416 25.135769784 1 8 0.125 719256320011158556.295934 \N \N \N \N \N
Bulgaria 839723293502804980.37257 32495105962335984.443779 0.961302603 698045923971197533.111863 21.481570941 1 8 0.125 461047582204761944.98274 \N \N \N \N \N
Greenland 601920620828034201.940169 927673528281994813.289426 -0.541189147 623732963151496700.95322 0.672362576 1 8 0.125 924942618279531211.17042 \N \N \N \N \N
Somalia 105998156469331871.992749 498120605280375301.5985 -3.699332723 637466186262098962.536218 1.279742656 0 8 0.0 150966632846203644.703816 \N \N \N \N \N

13 changes: 13 additions & 0 deletions regression-test/suites/usercases/GJYL/ddl/dim_mdm_factory.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
CREATE TABLE `dim_mdm_factory`
(
`code` varchar(100) NULL COMMENT "商品代码",
`name` text NULL COMMENT "生产厂家"
) ENGINE=OLAP
DUPLICATE KEY(`code`)
COMMENT "OLAP"
DISTRIBUTED BY HASH(`code`) BUCKETS 1
PROPERTIES (
"replication_allocation" = "tag.location.default: 1",
"in_memory" = "false",
"storage_format" = "V2"
);
117 changes: 117 additions & 0 deletions regression-test/suites/usercases/GJYL/ddl/dim_mdm_goods.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
CREATE TABLE `dim_mdm_goods`
(
`goodsno` varchar(100) NULL COMMENT "商品编码",
`accflag` varchar(100) NULL COMMENT "商品类型",
`accname` text NULL COMMENT "商品类型名称",
`groupno` text NULL COMMENT "商品大类",
`groupname` text NULL COMMENT "商品大类名称",
`subclass` text NULL COMMENT "商品子类",
`subclassname` text NULL COMMENT "商品子类名称",
`goodsdesc` text NULL COMMENT "商品描述",
`curname` text NULL COMMENT "通用名",
`goodsname` text NULL COMMENT "商品名称",
`oldcurname` text NULL COMMENT "通用名曾用名",
`opcode` text NULL COMMENT "商品名称助记码",
`curopcode` text NULL COMMENT "通用名助记码",
`goodsspec` text NULL COMMENT "规格",
`prepspec` text NULL COMMENT "制剂规格",
`dosageformsid` text NULL COMMENT "剂型",
`dosageformsname` text NULL COMMENT "剂型名称",
`busiscope` text NULL COMMENT "经营范围",
`busiscopename` text NULL COMMENT "经营范围名称",
`apprdocno` text NULL COMMENT "批准文号1",
`apprdocdate` text NULL COMMENT "批准文号1有效期",
`regdocno` text NULL COMMENT "注册证号1",
`regdocdate` text NULL COMMENT "注册证号1有效期",
`prodocno` text NULL COMMENT "生产许可证号/备案凭证编号",
`prodocdate` text NULL COMMENT "生产许可证号有效期",
`goodsunit` text NULL COMMENT "基本计量单位",
`barcode` text NULL COMMENT "国际条形码",
`interbarcode` text NULL COMMENT "内部条形码",
`standcode` text NULL COMMENT "本位码",
`prodarea` text NULL COMMENT "产地",
`factoryid` text NULL COMMENT "生产厂家",
`factoryname` text NULL COMMENT "生产厂家名称",
`byfactoryid` text NULL COMMENT "委托厂家",
`byfactoryname` text NULL COMMENT "委托厂家名称",
`goodstatus` text NULL COMMENT "商品状态",
`facshotname` text NULL COMMENT "厂家缩写",
`trademark` text NULL COMMENT "商标",
`importind` text NULL COMMENT "是否进口商品",
`rxtype` text NULL COMMENT "处方类别",
`incometaxrate` text NULL COMMENT "进项税率",
`incometaxratename` text NULL COMMENT "进项税率名称",
`salestaxrate` text NULL COMMENT "销项税率",
`salestaxratename` text NULL COMMENT "销项税率名称",
`pushlevel` text NULL COMMENT "销售属性",
`treatment` text NULL COMMENT "适应症/功能主治",
`tempdown` text NULL COMMENT "冷链储存温度下限",
`tempup` text NULL COMMENT "冷链储存温度上限",
`transtimelmt` text NULL COMMENT "冷链运输时限",
`purpose` text NULL COMMENT "适用用途",
`untoward` text NULL COMMENT "不良反应",
`interaction` text NULL COMMENT "药物相互作用",
`indication` text NULL COMMENT "适应症",
`taboo` text NULL COMMENT "禁忌症",
`method` text NULL COMMENT "用药方法",
`dosage` text NULL COMMENT "用法用量",
`sex` text NULL COMMENT "用药性别",
`population` text NULL COMMENT "用药人群",
`attention` text NULL COMMENT "注意事项",
`coldchainind` text NULL COMMENT "是否冷链药品",
`doudlecheck` text NULL COMMENT "是否二次验复",
`storageprop` text NULL COMMENT "存储特性",
`storagecond` text NULL COMMENT "存储条件",
`pregnant` text NULL COMMENT "是否孕妇禁用",
`specialctrl` text NULL COMMENT "是否特管药品",
`uniformity` text NULL COMMENT "是否一致性药物",
`chemistry` text NULL COMMENT "是否化学药",
`chinesepatent` text NULL COMMENT "是否中成药",
`validperiod` text NULL COMMENT "有效期",
`warnperiod` text NULL COMMENT "近效期",
`periodunit` text NULL COMMENT "效期单位",
`refretailprice` text NULL COMMENT "参考零售价",
`priceunit` text NULL COMMENT "价格单位",
`storagesort` text NULL COMMENT "存储分类",
`breakind` text NULL COMMENT "是否易碎",
`dangerind` text NULL COMMENT "是否危险品",
`shapedind` text NULL COMMENT "是否异形品",
`unitlength` text NULL COMMENT "基本包装长",
`unitwidth` text NULL COMMENT "基本包装宽",
`unitheight` text NULL COMMENT "基本包装高",
`unitvolume` text NULL COMMENT "基本包装体积",
`unitweight` text NULL COMMENT "基本包装重量",
`weightunit` text NULL COMMENT "基本包装重量单位",
`classone` text NULL COMMENT "大类编码",
`classtwo` text NULL COMMENT "中类编码",
`classthree` text NULL COMMENT "小类编码",
`classfour` text NULL COMMENT "子类编码",
`component` text NULL COMMENT "成分",
`classone_name` text NULL COMMENT "大类名称",
`classtwo_name` text NULL COMMENT "中类名称",
`classthree_name` text NULL COMMENT "小类名称",
`classfour_name` text NULL COMMENT "子类名称",
`tnumber` text NULL COMMENT "T编码",
`duplicate` text NULL COMMENT "是否废弃",
`remarks` text NULL COMMENT "备注",
`medicationday` text NULL COMMENT "用药天数",
`conversionratio` text NULL COMMENT "与替代编码转换比",
`diseasespecies` text NULL COMMENT "疾病种",
`specialattributes` text NULL COMMENT "特殊销售属性",
`dtpgood` text NULL COMMENT "dtp商品",
`nationalneg` text NULL COMMENT "国谈品种",
`chronicdisease` text NULL COMMENT "是否慢病长期用药",
`onlinesale` text NULL COMMENT "线上销售",
`accfactory` text NULL COMMENT "核算厂家",
`brand` text NULL COMMENT "品牌厂家名称",
`department` text NULL COMMENT "归属门店",
`dtptype` text NULL COMMENT "互医DTP类型"
) ENGINE=OLAP
DUPLICATE KEY(`goodsno`, `accflag`)
COMMENT "OLAP"
DISTRIBUTED BY HASH(`accflag`) BUCKETS 6
PROPERTIES (
"replication_allocation" = "tag.location.default: 1",
"in_memory" = "false",
"storage_format" = "V2"
);
Loading

0 comments on commit dfc0017

Please sign in to comment.