Skip to content

Commit

Permalink
Use consistent name for TimeUnit::Millisecond (#3575)
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored Sep 22, 2022
1 parent 52ff7ca commit add10a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion datafusion/proto/proto/datafusion.proto
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ enum DateUnit{

enum TimeUnit{
Second = 0;
TimeMillisecond = 1;
Millisecond = 1;
Microsecond = 2;
Nanosecond = 3;
}
Expand Down
2 changes: 1 addition & 1 deletion datafusion/proto/src/from_proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ impl From<protobuf::TimeUnit> for TimeUnit {
fn from(time_unit: protobuf::TimeUnit) -> Self {
match time_unit {
protobuf::TimeUnit::Second => TimeUnit::Second,
protobuf::TimeUnit::TimeMillisecond => TimeUnit::Millisecond,
protobuf::TimeUnit::Millisecond => TimeUnit::Millisecond,
protobuf::TimeUnit::Microsecond => TimeUnit::Microsecond,
protobuf::TimeUnit::Nanosecond => TimeUnit::Nanosecond,
}
Expand Down
2 changes: 1 addition & 1 deletion datafusion/proto/src/to_proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ impl From<&TimeUnit> for protobuf::TimeUnit {
fn from(val: &TimeUnit) -> Self {
match val {
TimeUnit::Second => protobuf::TimeUnit::Second,
TimeUnit::Millisecond => protobuf::TimeUnit::TimeMillisecond,
TimeUnit::Millisecond => protobuf::TimeUnit::Millisecond,
TimeUnit::Microsecond => protobuf::TimeUnit::Microsecond,
TimeUnit::Nanosecond => protobuf::TimeUnit::Nanosecond,
}
Expand Down

0 comments on commit add10a6

Please sign in to comment.