开发者社区 > 数据库 > 数据仓库 > 正文

云数据仓库ADB内表字段定义not null有影响吗?not null会导致已经导入的数据逐渐减少?

云数据仓库ADB内表字段定义not null有影响吗?not null会导致已经导入的数据逐渐减少吗?
create table catalog_returns
(
cr_returned_date_sk bigint,
cr_returned_time_sk bigint,
cr_item_sk bigint not null,
cr_refunded_customer_sk bigint,
cr_refunded_cdemo_sk bigint,
cr_refunded_hdemo_sk bigint,
cr_refunded_addr_sk bigint,
cr_returning_customer_sk bigint,
cr_returning_cdemo_sk bigint,
cr_returning_hdemo_sk bigint,
cr_returning_addr_sk bigint,
cr_call_center_sk bigint,
cr_catalog_page_sk bigint ,
cr_ship_mode_sk bigint ,
cr_warehouse_sk bigint ,
cr_reason_sk bigint ,
cr_order_number bigint not null,
cr_return_quantity double,
cr_return_amount double,
cr_return_tax double,
cr_return_amt_inc_tax double,
cr_fee double,
cr_return_ship_cost double,
cr_refunded_cash double,
cr_reversed_charge double,
cr_store_credit double,
cr_net_loss double
)
DISTRIBUTE BY HASH(cr_item_sk)
PARTITION BY VALUE(JULIAN_DATE_TO_YEAR_MONTH(cr_returned_date_sk)) PARTITION NUM 1000;

展开
收起
-Feng、冯冯 2024-04-15 12:13:44 22 0
0 条回答
写回答
取消 提交回答

热门讨论

热门文章

相关电子书

更多
基于阿里云MaxCompute构建企业云数据仓库CDW的最佳实践建议 立即下载
PostgresChina2018_陶征霖_新一代数据仓库OushuDB架构剖析 立即下载
MaxCompute数据仓库数据转换实践 立即下载