From b7206095f51b8900f27f1099458deb8ec7839192 Mon Sep 17 00:00:00 2001 From: xiangjinwu <17769960+xiangjinwu@users.noreply.github.com> Date: Tue, 21 Nov 2023 11:11:02 +0800 Subject: [PATCH] fix(source): workaround avro `date` default (#13530) --- Cargo.lock | 2 +- scripts/source/test_data/avro_bin.1 | Bin 844 -> 856 bytes src/connector/Cargo.toml | 2 +- src/connector/src/test_data/simple-schema.avsc | 3 ++- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 54463b23ed823..68bf1b179b2c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -190,7 +190,7 @@ dependencies = [ [[package]] name = "apache-avro" version = "0.16.0" -source = "git+https://github.com/risingwavelabs/avro?rev=b251943586e7fe7dd52319fc84f8be47921434aa#b251943586e7fe7dd52319fc84f8be47921434aa" +source = "git+https://github.com/risingwavelabs/avro?rev=d0846a16ce813a225af04ade35b3b8117b137a29#d0846a16ce813a225af04ade35b3b8117b137a29" dependencies = [ "bzip2", "crc32fast", diff --git a/scripts/source/test_data/avro_bin.1 b/scripts/source/test_data/avro_bin.1 index 8bf7eb866c8454230c0284d3b1f8c4571d52d7db..42d0584ab9b8f14bd616d1f37f2b0f620dfd496a 100644 GIT binary patch delta 90 zcmX@Zc7sjHKPiimMI^DTC|@r*KP5GpBd;_kM-0p_PR>ZpO+2zusE2W4pZMmLj1G)~ d3~y$<4hboC5nOI1=E9!R5j2^L*+>9g5CEZKAG81f delta 87 zcmcb?c7{#JKPiimMJ%zbC||EQIU_YUam_}h9>&eP7`+)4MZm(z`6;Q%9C@WVISkH9 aGdM3_I+&}QHjT~RdEb-CV$4PY=z;)2BOo{c diff --git a/src/connector/Cargo.toml b/src/connector/Cargo.toml index a930a2f256417..6147fcab2ef6b 100644 --- a/src/connector/Cargo.toml +++ b/src/connector/Cargo.toml @@ -15,7 +15,7 @@ normal = ["workspace-hack"] [dependencies] anyhow = "1" -apache-avro = { git = "https://github.com/risingwavelabs/avro", rev = "b251943586e7fe7dd52319fc84f8be47921434aa", features = [ +apache-avro = { git = "https://github.com/risingwavelabs/avro", rev = "d0846a16ce813a225af04ade35b3b8117b137a29", features = [ "snappy", "zstandard", "bzip", diff --git a/src/connector/src/test_data/simple-schema.avsc b/src/connector/src/test_data/simple-schema.avsc index f4223cf91291f..29936f27a8471 100644 --- a/src/connector/src/test_data/simple-schema.avsc +++ b/src/connector/src/test_data/simple-schema.avsc @@ -34,7 +34,8 @@ { "name": "entrance_date", "type": "int", - "logicalType": "date" + "logicalType": "date", + "default": 0 }, { "name": "birthday",