Skip to content

Commit 6532cd4

Browse files
committed
Add topsql_meta_deltalake
Signed-off-by: yibin87 <[email protected]>
1 parent 6690513 commit 6532cd4

File tree

8 files changed

+1809
-6
lines changed

8 files changed

+1809
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ vector-lib = { git = "https://github.com/vectordotdev/vector", tag = "v0.49.0",
6565
xz2 = { version = "0.1.7" }
6666
hashlru = "0.11.1"
6767
lazy_static = "1.4.0"
68+
lru = "0.12.5"
6869

6970
[dev-dependencies]
7071
lazy_static = "1.4.0"

src/sinks/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ pub mod azure_blob_upload_file;
33
pub mod deltalake;
44
pub mod gcp_cloud_storage_upload_file;
55
pub mod vm_import;
6-
pub mod topsql_deltalake;
6+
pub mod topsql_data_deltalake;
7+
pub mod topsql_meta_deltalake;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use vector_lib::{
1818
tls::TlsConfig,
1919
};
2020

21-
use crate::sinks::topsql_deltalake::processor::TopSQLDeltaLakeSink;
21+
use crate::sinks::topsql_data_deltalake::processor::TopSQLDeltaLakeSink;
2222

2323
use reqwest::Client;
2424
use serde_json::Value;
@@ -37,7 +37,7 @@ pub const fn default_max_delay_secs() -> u64 {
3737
pub use crate::common::deltalake_writer::{DeltaTableConfig, WriteConfig};
3838

3939
/// Configuration for the deltalake sink
40-
#[configurable_component(sink("topsql_deltalake"))]
40+
#[configurable_component(sink("topsql_data_deltalake"))]
4141
#[derive(Debug, Clone)]
4242
#[serde(deny_unknown_fields)]
4343
pub struct DeltaLakeConfig {
@@ -228,7 +228,7 @@ impl GenerateConfig for DeltaLakeConfig {
228228
}
229229

230230
#[async_trait::async_trait]
231-
#[typetag::serde(name = "topsql_deltalake")]
231+
#[typetag::serde(name = "topsql_data_deltalake")]
232232
impl SinkConfig for DeltaLakeConfig {
233233
async fn build(&self, cx: SinkContext) -> vector::Result<(VectorSink, Healthcheck)> {
234234
error!(
File renamed without changes.

0 commit comments

Comments
 (0)