Skip to content

do not ignore ms in ruby time - #6217

Merged
gianm merged 1 commit into
apache:masterfrom
himanshug:ruby_time
Aug 23, 2018
Merged

gianm merged 1 commit into
apache:masterfrom
himanshug:ruby_time

Conversation

@himanshug

Copy link
Copy Markdown
Contributor

need it for some data we're indexing.

it might be backward incompatible for users who relied on parser truncating the ms away and not appropriately using indexing granularity to be second.
those users would need to change indexing granularity in the relevant task specs.

public void testRuby()
{
final Function<Object, DateTime> parser = TimestampParser.createObjectTimestampParser("ruby");
Assert.assertEquals(DateTimes.of("2013-01-16T15:41:47+01:00"), parser.apply("1358347307.435447"));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Will it still parse numbers out of strings?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah, input in this test case is string.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Got it, sorry I missed that there was one in each.

@nishantmonu51 nishantmonu51 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. 👍

@gianm
gianm merged commit ddb26f2 into apache:master Aug 23, 2018
@dclim dclim added this to the 0.13.0 milestone Oct 9, 2018
riovic918data pushed a commit to riovic918data/druid that referenced this pull request Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants