rafaelxie opened a new issue, #17507:
URL: https://github.com/apache/doris/issues/17507

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   doris-1.2.0
   
   ### What's Wrong?
   
   when i create a table with dynamic partition config, the result patitions 
contain invalid data literal range value such as: PARTITION p_20230430 VALUES 
[('2490-02-30'), ('2490-03-01')).
   Then when i load data into the doris table by the way of stream load ,it 
returns these errors:
   
{"BeginTxnTimeMs":1,"CommitAndPublishTimeMs":0,"Label":"datax_doris_writer_5ee590dc-180e-415e-aab7-3a2d3aef2d49","LoadBytes":0,"LoadTimeMs":0,"Message":"invalid
 date literal in partition column, 
date=TDateLiteral(value=2490-02-30)","NumberFilteredRows":0,"NumberLoadedRows":0,"NumberTotalRows":0,"NumberUnselectedRows":0,"ReadDataTimeMs":0,"Status":"Fail","StreamLoadPutTimeMs":79,"TwoPhaseCommit":"false","TxnId":822026,"WriteDataTimeMs":0}
   
   the create table sql script is;
   CREATE TABLE `t_st_margin_day_client_all_test` 
   ( `trade_date` datev2 NULL, 
   `fund_account` varchar(64) NULL, 
   `last_trade_date` datev2 NULL, 
   `client_id` varchar(255) NULL, 
   `client_name` varchar(255) NULL, 
   `organ_flag` char(1) NULL, 
   `branch_no` decimal(10, 0) NULL, 
   `sub_company_code` decimal(10, 0) NULL, 
   `fin_max_quota` decimal(19, 2) NULL, 
   `slo_max_quota` decimal(19, 2) NULL, 
   `fin_balance` decimal(19, 2) NULL, 
   `slo_balance` decimal(19, 2) NULL, 
   `slo_ordinary_balance` decimal(19, 2) NULL, 
   `slo_market_value` decimal(19, 2) NULL, 
   `fin_weight_rate` decimal(19, 8) NULL, 
   `margin_account_asset` decimal(19, 2) NULL, 
   `ordinary_account_asset` decimal(19, 2) NULL, 
   `margin_debts` decimal(19, 2) NULL, 
   `fin_interest_income` decimal(19, 2) NULL, 
   `slo_interest_income` decimal(19, 2) NULL, 
   `slo_promise_close_balance` decimal(19, 2) NULL, 
   `contract_rate` decimal(19, 8) NULL, 
   `fin_balance_avg` decimal(19, 2) NULL, 
   `slo_balance_avg` decimal(19, 2) NULL, 
   `slo_promise_balance_avg` decimal(19, 2) NULL, 
   `fixed_slo_balance_avg` decimal(19, 2) NULL, 
   `fin_interest_income_year` decimal(19, 2) NULL, 
   `slo_interest_income_year` decimal(19, 2) NULL, 
   `slo_weight_rate` decimal(19, 8) NULL, 
   `fixed_slo_balance` decimal(19, 2) NULL, 
   `fin_promise_balance` decimal(19, 2) NULL, 
   `fin_promise_compact_income` decimal(19, 2) NULL, 
   `slo_promise_compact_income` decimal(19, 2) NULL, 
   `slo_promise_close_receiv_int` decimal(19, 2) NULL, 
   `slo_promise_begin_receiv_int` decimal(19, 2) NULL, 
   `slo_repaid_interest` decimal(19, 2) NULL, 
   `repaid_slo_promise_balance` decimal(19, 2) NULL, 
   `fin_balance_avg_90` decimal(19, 2) NULL, 
   `slo_balance_avg_90` decimal(19, 2) NULL, 
   `slo_promise_balance_avg_90` decimal(19, 2) NULL, 
   `fixed_slo_balance_avg_90` decimal(19, 2) NULL, 
   `last_year_fin_balance` decimal(19, 2) NULL, 
   `last_year_slo_market_value` decimal(19, 2) NULL, 
   `last_year_fixed_slo_balance` decimal(19, 2) NULL, 
   `last_fin_balance` decimal(19, 2) NULL, 
   `last_slo_market_value` decimal(19, 2) NULL, 
   `last_fixed_slo_balance` decimal(19, 2) NULL, 
   `ref_balance` decimal(19, 2) NULL, 
   `c1_1_kqxtfl` varchar(255) NULL, 
   `c1_2_kqljfl` varchar(255) NULL, 
   `c1_2a_1_jqjgjx` varchar(255) NULL, 
   `c1_2a_2_jqkhglr` varchar(255) NULL, 
   `c1_2a_3_jqcpzjf` varchar(255) NULL, 
   `c1_2a_4_gwgl` varchar(255) NULL, 
   `c1_2b_1_gdxz` varchar(255) NULL, 
   `c1_2b_1_1_jggyfs` varchar(255) NULL, 
   `c1_2b_1_2_jgfgyfs` varchar(255) NULL, 
   `c1_2b_2_jgxz` varchar(255) NULL, 
   `c1_2b_3_yxhh` varchar(255) NULL, 
   `c1_2c_1_grqd` varchar(255) NULL, 
   `c1_2c_2_grxz` varchar(255) NULL, 
   `c2_1_abc` varchar(255) NULL, 
   `c2_1_1_qy` varchar(255) NULL, 
   `c2_2_sf` varchar(255) NULL, 
   `c2_2_sf_ln` varchar(255) NULL, 
   `c2_2_sf_sz` varchar(255) NULL, 
   `c2_2_1_city` varchar(255) NULL, 
   `c2_2_1_city_sz` varchar(255) NULL, 
   `c2_3_yyb` varchar(255) NULL, 
   `tzbl` decimal(10, 4) NULL, 
   `c4_1_zytzz` varchar(255) NULL, 
   `c7_1_dx` varchar(255) NULL, 
   `c7_2_tl` varchar(255) NULL, 
   `c7_3_rnjydd` varchar(255) NULL, 
   `c7_4_sgrn` varchar(255) NULL, 
   `c7_5_jqrn` varchar(255) NULL, 
   `c7_6_lhdkdd` varchar(255) NULL, 
   `c7_7_lhdkcq` varchar(255) NULL, 
   `c7_8_lhdktc` varchar(255) NULL, 
   `c7_9_jbmdk` varchar(255) NULL, 
   `c7_10_yspdc` varchar(255) NULL, 
   `c7_11_zsjy` varchar(255) NULL, 
   `c7_12_lszk` varchar(255) NULL, 
   `c7_13_jyxrzdd` varchar(255) NULL, 
   `c7_14_gpcd` varchar(255) NULL, 
   `c7_15_lhzzrz` varchar(255) NULL, 
   `c7_16_cwzh` varchar(255) NULL, 
   `c7_17_ygcg` varchar(255) NULL, 
   `c7_18_dd` varchar(255) NULL, 
   `c13_1` varchar(255) NULL, 
   `c14` varchar(255) NULL, 
   `upddate_time` datetime(0) NULL ) 
   ENGINE=OLAP 
   DUPLICATE KEY(`trade_date`, `fund_account`) 
   COMMENT 'OLAP' 
   PARTITION BY RANGE(`trade_date`) ()
   DISTRIBUTED BY HASH(`fund_account`) BUCKETS 24 
   PROPERTIES ( 
    "dynamic_partition.enable" = "true",
       "dynamic_partition.time_unit" = "DAY",
       "dynamic_partition.end" = "60",
       "dynamic_partition.prefix" = "p_",
        "dynamic_partition.buckets" = "24",
   "replication_allocation" = "tag.location.default: 3", 
   "colocate_with" = "fundaccount_group_tpd", 
   "in_memory" = "false", 
   "storage_format" = "V2", 
   "disable_auto_compaction" = "false" )
   
   ### What You Expected?
   
   1. why the patitions has range value like '2490-02-30', it's obviously 
invalid data literal
   2. when i create a partition p_20230325, why the range is [('2490-01-25'), 
('2490-01-26')) rather than [('2023-03-25'), ('2023-03-26'))
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to