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

ParseSpec: Remove default setting. #6310

Merged
merged 2 commits into from
Sep 12, 2018
Merged

Conversation

gianm
Copy link
Contributor

@gianm gianm commented Sep 7, 2018

Having a default ParseSpec implementation is bad for users, because it masks
problems specifying the format. Two common problems masked by this are specifying
the "format" at the wrong level of the JSON, and specifying a format that
Druid doesn't support. In both cases, having a default implementation means that
users will get the delimited parser rather than an error, and then be confused
when, later on, their data failed to parse.

Marked release notes since this is a user visible behavior change. Someone relying
on the above behaviors would need to start specifying "delimited" explicitly.

Having a default ParseSpec implementation is bad for users, because it masks
problems specifying the format. Two common problems masked by this are specifying
the "format" at the wrong level of the JSON, and specifying a format that
Druid doesn't support. In both cases, having a default implementation means that
users will get the delimited parser rather than an error, and then be confused
when, later on, their data failed to parse.
@gianm gianm added this to the 0.13.0 milestone Sep 7, 2018
@fjy
Copy link
Contributor

fjy commented Sep 7, 2018

@gianm can you check the integration tests?

@gianm
Copy link
Contributor Author

gianm commented Sep 8, 2018

@fjy yes, I just fixed the ITs; a couple of the parseSpecs in there didn't specify a format.

@gianm gianm merged commit 7f3a0da into apache:master Sep 12, 2018
@gianm gianm deleted the no-default-parse-spec branch September 12, 2018 02:16
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.

3 participants