zoukankan      html  css  js  c++  java
  • hive建表结构

    drop table dw.fct_so;
    create table dw.fct_so
    (
    so_id bigint comment '订单ID',
    parent_so_id bigint comment '父订单ID (如果未拆单,则等于so_id)',
    order_code string comment '订单编码',
    order_amt float comment '订单金额(产品总额+运费)',
    actl_order_amt float comment '实付金额',
    actl_order_amt_prev float comment '实付金额原始值',
    order_coupon_amt float comment '抵用券抵扣金额',
    order_promotion_amt float comment '参加促销立减金额(满减订单统计促销金额大于0)',
    product_amt float comment '产品总额',
    user_id bigint comment '账户ID -1:快速下单',
    order_delivery_amt float comment '运费',
    order_delivery_amt_prev float comment '运费原始值',
    order_status int comment '订单状态:1-待买家付款,2-待发货,3-待买家确认收货,4-退款退货中,5-交易成功,6-交易关闭,100-待买家付款,101-待发货,102-待买家确认收货,103-交易成功,104-交易关闭',
    payment_method int comment '付款方式:1-线上支付,2-分期,3-线下支付,4-货到付款',
    payment_period int comment '分期付款期数',
    payment_status int comment '支付状态:1-未付款,2-已付款,3-退货中,4-部分付款',
    pay_mode int comment '支付方式(通过什么途径(中间方第三方)支付):0-默认,1-微信app支付,2-POS银行卡支付,3-祥付宝快捷支付,4-现金支付,5-微信条码,6-微信扫码,7-支付宝扫码,8-支付宝网关支付,9-支付宝手机快捷支付,10-祥付宝收银台支付,11-支付宝条码,12-支付宝app支付,13-银联B2B,14-银联B2C,15-银联APP,16-余额支付,17-支付宝H5,18-现金核销,19-快捷支付',
    order_create_time string comment '创建时间',
    order_pay_time string comment '支付时间',
    order_confirm_time string comment '订单审核时间',
    confirm_operator_id bigint comment '订单审核人ID',
    order_delivery_time string comment '发货时间',
    order_receive_time string comment '收货时间',
    order_cancel_time string comment '订单取消时间',
    cancel_reason bigint comment '取消原因',
    cancel_remark string comment '订单取消备注',
    cancel_operator_id bigint comment '订单取消人ID',
    order_complete_time string comment '订单完成时间',
    complete_operator_id bigint comment '完成操作人',
    update_time string comment '更新时间',
    update_operator_id int comment '更新人 -1:系统更新,-2:(卓付通)支付回调,20162016:导入数据',
    country_id int comment '收货人国家ID',
    province_id int comment '收货人省ID',
    city_id int comment '收货人城市ID',
    county_id int comment '收货人区县ID',
    area string comment '收货人四级区域',
    address string comment '收货人详细地址',
    post_code string comment '收货人邮编',
    name string comment '收货人姓名',
    phone string comment '收货人手机号',
    delivery_company_id bigint comment '配送公司ID',
    delivery_code string comment '配送单号',
    invoice_title string comment '发票抬头',
    invoice_type int comment '发票类型:1-普通发票,2-增值税发票',
    merchant_id bigint comment '商家ID,2179:代表物业缴费,0:代表快速下单',
    merchant_remark string comment '商家备注',
    customer_message string comment '顾客留言',
    client_ip string comment '客户端IP地址',
    order_type int comment '订单类型',
    expect_delivery_time int comment '期望配送时间段:0-不限时间送货,1-仅工作日送货,2-仅双休日、节假日送货',
    delivery_type int comment '配送方式,1:自提;2:快递配送;3:货运',
    receiver_email string comment '收货人邮箱',
    order_source int comment '订单来源:0-字段上线前的历史数据,1-SHOP平台,2-手机平台(2016.10.8后弃用),3-后台订货会(未使用),4-H5下单,5-卓越管家,6-Android,7-IOS,8-订单,100-android,101-ios,102-h5下单,103-代客下单,104-电话下单',
    is_disassembled int comment '便利购订单拆单状态(0:不需拆单 1:待拆单 2:拆单成功 3:拆单失败)',
    is_used_coupon int comment '是否抵用券 0、未使用 1、平台券 2、档口券',
    is_easygo int comment '是否便利购订单(0:不是 1:是)',
    is_delay_receive int comment '是否已延迟收货: 0 未延迟, 1 已延迟',
    channel_source string comment '渠道来源',
    is_leaf int comment '是否叶子节点',
    is_audit int comment '拆单前审核',
    business_type int comment '业务类型:0-,1-',
    etl_update string comment '数据落地时间'
    )
    comment '订单表' partitioned by (date string comment '日期分区') ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE ; 

  • 相关阅读:
    国内CAD二次开发关注度比较
    用Java做UG NX 二次开发
    【纪念帖】开通我的第二技术博客
    UG NXOpen for C++ (NX6) CHM帮助文件
    UG CAM 二次开发 UF_SETUP_generate_program详解
    解决QWidget: Must construct a QApplication before a QPaintDevice
    建模语言: Not UML but Generative Modeling Language
    从32bit迁移到64bit
    从32bit迁移到64bit[3]
    [Revisit.SolidMCP] 更广泛使用pimpl idiom
  • 原文地址:https://www.cnblogs.com/ngy0217/p/10051348.html
Copyright © 2011-2022 走看看