r1.1.30及以下版本函数to_char, to_date和to_timestamp支持的时间范围是1925 - 2282,超过就会报错。建议升级至r1.1.31以上版本。升级后可以通过GUC控制时间范围,支持0000-9999的数据。set hg_experimental_functions_use_pg_implementation = ‘to_char’;set hg_experimental_functions_use_pg_implementation = ‘to_date’;set hg_experimental_functions_use_pg_implementation = ‘to_timestamp’;