Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

feat: support temporal partition function #161

Merged
merged 3 commits into from
Aug 28, 2023

Conversation

ZENOTME
Copy link
Contributor

@ZENOTME ZENOTME commented Aug 26, 2023

No description provided.

Copy link
Contributor

@liurenjie1024 liurenjie1024 left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks!

const DAY_PER_SECOND: f64 = 0.0000115741;
const HOUR_PER_SECOND: f64 = 1_f64 / 3600.0;

pub struct Year {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pub struct Year {}
pub struct Year;

}
}

pub struct Month {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pub struct Month {}
pub struct Month;


/// 1970-01-01 is base date in iceberg.
/// 719163 is the number of days from 0000-01-01 to 1970-01-01
const BASE_DAY_FROM_CE: i32 = 719163;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const BASE_DAY_FROM_CE: i32 = 719163;
const EPOCH_DAYS_FROM_CE : i32 = 719163;

}
}

pub struct Hour {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pub struct Hour {}
pub struct Hour;

@liurenjie1024
Copy link
Contributor

The ci can be fixed after #164 merged.

@liurenjie1024 liurenjie1024 merged commit 1149912 into icelake-io:main Aug 28, 2023
3 checks passed
@ZENOTME ZENOTME deleted the temporal branch August 28, 2023 10:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants