GreptimeTeam / greptimedb-ingester-go

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

Supports gRPC write hints #40

Closed killme2008 closed 1 month ago

killme2008 commented 2 months 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 2 months 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