Skip to content

Feat/ignite2 rdbms#2982

Open
JohnSColeman wants to merge 7 commits intogolemcloud:mainfrom
JohnSColeman:feat/ignite2-rdbms
Open

Feat/ignite2 rdbms#2982
JohnSColeman wants to merge 7 commits intogolemcloud:mainfrom
JohnSColeman:feat/ignite2-rdbms

Conversation

@JohnSColeman
Copy link

Add rdbms support for Apache Ignite v2

@github-actions
Copy link

github-actions bot commented Mar 13, 2026

✅ All contributors have signed the CLA.
Posted by the CLA Assistant Lite bot.

@JohnSColeman
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Mar 13, 2026
let client = self
.get_client(key)
.or_else(|| {
let _ = futures::executor::block_on(self.create(key.address.as_str(), worker_id));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't do block_on - it's going to block the thread the the current tokio task is running on until create completes. As or_else can't take an async closure, I'd suggest creating a helper function for this that matches on the result manually.

DbValue::Uuid(v) => SerializableDbValueNode::Uuid(v),
DbValue::Date(ms) => {
let dt = Utc.timestamp_millis_opt(ms).single().unwrap_or_default();
SerializableDbValueNode::Timestamp(dt.naive_utc())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If ignite's DATE value is not really a timestamp but just a year/month/day then we may want to use SerializableDbValueNode::Date instead

Self {
ordinal: value.ordinal as u64,
name: value.name,
db_type_name: "unknown".to_string(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to know the type somehow here?

@vigoo
Copy link
Contributor

vigoo commented Mar 17, 2026

To fix the check-clippy-and-format check, run cargo make fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants