Skip to content

Conversation

@chenxinwei
Copy link
Contributor

Purpose

Hourly tag format only supports yyyy-MM-dd HH and yyyyMMdd HH now, user also need format without space.

Linked issue: close #5161

Support enums without spaces in TagPeriodFormatter.

Tests

Add testTagHourlyPeriodFormatterWithoutDashesAndSpaces in TagAutoManagerTest.java

API and Format

Documentation

Change-Id: I302587dd0f907b6cf9977fbaf7d7b983b66a0fba
@xiangyuf
Copy link
Contributor

Great speed!

WITH_DASHES("with_dashes", "Dates and hours with dashes, e.g., 'yyyy-MM-dd HH'"),
WITHOUT_DASHES("without_dashes", "Dates and hours without dashes, e.g., 'yyyyMMdd HH'");
WITHOUT_DASHES("without_dashes", "Dates and hours without dashes, e.g., 'yyyyMMdd HH'"),
WITH_DASHES_WITHOUT_SPACES(
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm don't think any user need this mode, yyyy-MM-ddHH . Looks weird. Maybe yyyyMMddHH is enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your suggestion, I've delete it.

Change-Id: I48dcb32ff0a07654c3ded2b47c9fcac8254c39f0
@chenxinwei chenxinwei force-pushed the master_suppert_tag_period_without_spaces branch from 53f82fa to 52a0f63 Compare February 27, 2025 03:00
Change-Id: I27358ad0af4f1528de8ea8ad1613702c562cb557
@xiangyuf
Copy link
Contributor

@chenxinwei Can CI passed in your local repo?

@xiangyuf
Copy link
Contributor

The code change LGTM.

Copy link
Contributor

@xiangyuf xiangyuf left a comment

Choose a reason for hiding this comment

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

+1

@chenxinwei
Copy link
Contributor Author

@chenxinwei Can CI passed in your local repo?

Yes

@xiangyuf
Copy link
Contributor

cc: @JingsongLi @wwj6591812 for review.

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

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

+1

@JingsongLi JingsongLi merged commit 7bfb13f into apache:master Mar 3, 2025
11 of 13 checks passed
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.

[Feature] TagPeriodFormatter support Dates and hours without spaces

3 participants