Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants