create catalog stmt
CREATE CATALOG `mdb_catalog` PROPERTIES (
"password" = "*XXX",
"driver_class" = "com.mysql.cj.jdbc.Driver",
"only_specified_database" = "false",
"checksum" = "95cde01c78e7b04e13305338d60e056a",
"driver_url" = "mysql-connector-java-8.0.28.jar",
"lower_case_table_names" = "false",
"type" = "jdbc",
"user" = "dts1",
"jdbc_url" = "jdbc:mysql://10.1.193.23:3306/weike?useSSL=false&yearIsDateType=false&tinyInt1isBit=true&transformedBitIsBoolean=true&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull",
"metadata_refresh_interval_sec" = "20"
);
执行语句
insert into dim_mdb_lectures_lecture(id, channel_id, liveroom_id, name, start_time, cover, status, update_time,
account_id, can_discuss, can_speak, create_time, need_password, password, money,
need_money, popular, priority, duration, show_reward_message, image_mode,
parent_lecture_id, push_count, liveroom_priority, last_push_time, need_signup,
signup_condition, reward_config, reward_percent, category_id,
is_invite_custom_active, description_img, lecture_mode, can_public_relay,
relay_fee, avatar, show_in_liveroom_list, is_show_qrcode, subtitle,
custom_sharecard, need_pay_channel, lecture_type, n_status, remark)
SELECT
id, channel_id, liveroom_id, name, start_time, cover, status, update_time,
account_id, can_discuss, can_speak, create_time, need_password, password, money,
need_money, popular, priority, duration, show_reward_message, image_mode,
parent_lecture_id, push_count, liveroom_priority, last_push_time, need_signup,
signup_condition, reward_config, reward_percent, category_id,
is_invite_custom_active, description_img, lecture_mode, can_public_relay,
relay_fee, avatar, show_in_liveroom_list, is_show_qrcode, subtitle,
custom_sharecard, need_pay_channel, lecture_type, n_status, remark
from mdb_catalog.weike.lectures_lecture
where id between 16 and 5000000
详细报错
[2024-03-15 11:02:12] [HY000][1105] errCode = 2, detailMessage = (10.2.0.7)[INTERNAL_ERROR]UdfRuntimeException: get next block failed:
[2024-03-15 11:02:12] CAUSED BY: SQLException: Error
[2024-03-15 11:02:12] CAUSED BY: DateTimeException: Invalid value for MonthOfYear (valid values 1 - 12): 0