kaka11chen opened a new pull request, #25570:
URL: https://github.com/apache/doris/pull/25570

   ## Proposed changes
   
   ### Resolution
   
   Fix date dict infinite loop.
   
   ### Reproduce Steps:
   ```
   mysql> use hive.tpcds_bin_partitioned_parquet_100;
   Reading table information for completion of table and column names
   You can turn off this feature to get a quicker startup with -A
   
   Database changed
   mysql> select count(d_date) from 
hive.tpcds_bin_partitioned_parquet_1.date_dim;
   ERROR 1105 (HY000): RpcException, msg: io.grpc.StatusRuntimeException: 
UNAVAILABLE: Network closed for unknown reason
   ```
   ### Coredump:
   ```
   Program terminated with signal SIGSEGV, Segmentation fault.
   #0  0x000055e5ceece47c in 
doris::vectorized::DateV2Value<doris::vectorized::DateV2ValueType>::operator+= 
(this=0x7f446782c048, count=51066)
       at 
/mnt/datadisk1/chenqi_temp/doris-github/be/src/vec/runtime/vdatetime_value.h:1061
   1061             date_add_interval<DAY>(interval);
   [Current thread is 1 (Thread 0x7f4468028700 (LWP 2122608))]
   (gdb) bt
   #0  0x000055e5ceece47c in 
doris::vectorized::DateV2Value<doris::vectorized::DateV2ValueType>::operator+= 
(this=0x7f446782c048, count=51066)
       at 
/mnt/datadisk1/chenqi_temp/doris-github/be/src/vec/runtime/vdatetime_value.h:1061
   #1  doris::vectorized::date_day_offset_dict::operator[] (day=25500, 
this=<optimized out>) at 
/mnt/datadisk1/chenqi_temp/doris-github/be/src/vec/runtime/vdatetime_value.cpp:2700
   #2  
doris::vectorized::DateV2Value<doris::vectorized::DateV2ValueType>::get_date_from_daynr
 (this=0x7f446782c0c8, daynr=745027) at 
/mnt/datadisk1/chenqi_temp/doris-github/be/src/vec/runtime/vdatetime_value.cpp:2782
   #3  0x000055e5ceece481 in 
doris::vectorized::DateV2Value<doris::vectorized::DateV2ValueType>::operator+= 
(this=0x7f446782c0c8, count=51066)
       at 
/mnt/datadisk1/chenqi_temp/doris-github/be/src/vec/runtime/vdatetime_value.h:1061
   #4  doris::vectorized::date_day_offset_dict::operator[] (day=25500, 
this=<optimized out>) at 
/mnt/datadisk1/chenqi_temp/doris-github/be/src/vec/runtime/vdatetime_value.cpp:2700
   #5  
doris::vectorized::DateV2Value<doris::vectorized::DateV2ValueType>::get_date_from_daynr
 (this=0x7f446782c148, daynr=745027) at 
/mnt/datadisk1/chenqi_temp/doris-github/be/src/vec/runtime/vdatetime_value.cpp:2782
   #6  0x000055e5ceece481 in 
doris::vectorized::DateV2Value<doris::vectorized::DateV2ValueType>::operator+= 
(this=0x7f446782c148, count=51066)
       at 
/mnt/datadisk1/chenqi_temp/doris-github/be/src/vec/runtime/vdatetime_value.h:1061
   #7  doris::vectorized::date_day_offset_dict::operator[] (day=25500, 
this=<optimized out>) at 
/mnt/datadisk1/chenqi_temp/doris-github/be/src/vec/runtime/vdatetime_value.cpp:2700
   #8  
doris::vectorized::DateV2Value<doris::vectorized::DateV2ValueType>::get_date_from_daynr
 (this=0x7f446782c1c8, daynr=745027) at 
/mnt/datadisk1/chenqi_temp/doris-github/be/src/vec/runtime/vdatetime_value.cpp:2782
   #9  0x000055e5ceece481 in 
doris::vectorized::DateV2Value<doris::vectorized::DateV2ValueType>::operator+= 
(this=0x7f446782c1c8, count=51066)
       at 
/mnt/datadisk1/chenqi_temp/doris-github/be/src/vec/runtime/vdatetime_value.h:1061
   #10 doris::vectorized::date_day_offset_dict::operator[] (day=25500, 
this=<optimized out>) at 
/mnt/datadisk1/chenqi_temp/doris-github/be/src/vec/runtime/vdatetime_value.cpp:2700
   #11 
doris::vectorized::DateV2Value<doris::vectorized::DateV2ValueType>::get_date_from_daynr
 (this=0x7f446782c248, daynr=745027) at 
/mnt/datadisk1/chenqi_temp/doris-github/be/src/vec/runtime/vdatetime_value.cpp:2782
   ...
   ```
   
   <!--Describe your changes.-->
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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

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