GreptimeTeam / greptimedb-ingester-go

A Go ingester for GreptimeDB, which is compatible with GreptimeDB protocol and lightweight.
Apache License 2.0
12 stars 5 forks source link

Supports gRPC write hints #40

Open killme2008 opened 4 weeks ago

killme2008 commented 4 weeks ago

Just like java sdk

https://github.com/GreptimeTeam/greptimedb-ingester-java/pull/43

https://github.com/GreptimeTeam/greptimedb-ingester-java/pull/44

Users can set custom table options as write hints when automatically creating tables:

daviderli614 commented 1 week ago

Usage Examples:https://github.com/GreptimeTeam/greptimedb-ingester-go/blob/b07ec74f356ce7e853bc18664e0bdb42b6b64404/examples/hint/main.go#L93

hints = append(hints,
  hint.Hint{Key: "ttl", Value: "3d"},
  hint.Hint{Key: "merge_mode", Value: "last_non_null"},
  hint.Hint{Key: "append_mode", Value: "false"},
)

PR: https://github.com/GreptimeTeam/greptimedb-ingester-go/pull/48