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

Update to conversion tool to work in current versions #6159

Merged
merged 2 commits into from
Mar 30, 2016
Merged

Conversation

joelegasse
Copy link
Contributor

Fixes #6104, #6135, #6100, #6092, and probably others

After adding type-switches to the tsm1 packages, the custom
implementation found in the conversion tool broke. This change uses
tsm1.NewValue() instead of a custom implementation.

This change also ensures that the tsm1.Value interface can only be
implemented internally to allow for the optimized type-switch based
encoding

@@ -33,6 +33,8 @@ type Value interface {
Value() interface{}
Size() int
String() string

internalOnly()
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this for?

Copy link
Contributor

Choose a reason for hiding this comment

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

To prevent using custom Value implementations?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it makes sure that all tsm1.Values are created by this package.

After adding type-switches to the tsm1 packages, the custom
implementation found in the conversion tool broke. This change uses
tsm1.NewValue() instead of a custom implementation.

This change also ensures that the tsm1.Value interface can only be
implemented internally to allow for the optimized type-switch based
encoding
@jwilder
Copy link
Contributor

jwilder commented Mar 30, 2016

👍 on green.

@jwilder
Copy link
Contributor

jwilder commented Mar 30, 2016

Oh. Needs changelog update.

@joelegasse joelegasse merged commit c190778 into master Mar 30, 2016
@joelegasse joelegasse deleted the jl-influx-tsm branch March 30, 2016 17:52
@jwilder jwilder added this to the 0.11.1 milestone Mar 31, 2016
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