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

Support for float type (part 1: cpp) #731

Closed
wants to merge 1 commit into from

Conversation

andrewcox
Copy link

Ported from fbthrift

@bufferoverflow
Copy link
Contributor

Thanks Andrew! I will review this during the weekend...

Could you please add THRIFT-2457 as prefix within your commits as mentioned within CONTRIBUTING.md ? This will simplify the automation with apache policies and automation made by @jfarrell and infra team.

best!
-roger

@bufferoverflow
Copy link
Contributor

Great patch Andrew!
I would really like to get FLOAT up and running here. The blocker for not merging now is breaking other languages with this at the moment, I had to exclude a lot:

sh bootstrap.sh
./configure --without-go --without-c_glib --without-haskell --without-haxe --without-java --without-erlang --without-ruby --without-perl --without-php --without-nodejs --without-python --without-csharp
make
make check
make cross
python test/test.py -s --server cpp --client cpp

our first line of defense was hit heavily ;-) https://travis-ci.org/apache/thrift/builds/94772477

Could you fix these issues?

In member function ‘std::string t_csharp_generator::declare_field(t_field*, bool, std::string)’:
src/generate/t_csharp_generator.cc:2713:14: warning: enumeration value ‘TYPE_FLOAT’ not handled in switch [-Wswitch]
       switch (tbase) {

I would say providing a warning such as here and add some little stubs with a TODO should be sufficient:
https://github.com/apache/thrift/blob/master/compiler/cpp/src/generate/t_as3_generator.cc#L2358

thanks again!
-roger

@nsuke
Copy link
Member

nsuke commented Dec 7, 2015

@bufferoverflow Just FYI our first line of defense is hit from behind not by this patch.
At that time Travis people was migrating their "legacy" env to Google cloud and that somehow broke most of our builds.
(This doesn't matter, If your local build is failing too)

@andrewcox
Copy link
Author

Updated the commit name to have the correct prefix (the current commit is otherwise unchanged)

Yes, I was just checking whether this looks like what you want, I'll go about making this work for more languages.

When I update the pull request will it re-run the CI tests so I can keep up with what I need to fix?

@bufferoverflow
Copy link
Contributor

Yes, CI will re-run.

@jeking3
Copy link
Contributor

jeking3 commented Jan 24, 2018

This pull request is being closed due to lack of activity.
You can re-open it after rebasing on the current master if you would like it to be reconsidered.

@asfgit asfgit closed this in 8d96b3b Jan 24, 2018
jeking3 added a commit to jeking3/thrift that referenced this pull request Mar 10, 2018
This closes apache#93
This closes apache#326
This closes apache#345
This closes apache#352
This closes apache#353
This closes apache#383
This closes apache#395
This closes apache#413
This closes apache#488
This closes apache#555
This closes apache#624
This closes apache#731
This closes apache#747
This closes apache#756
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.

4 participants