-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-373: [C++] JSON serialization format for testing #202
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
Closed
Closed
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
24c1d5d
Some Types refactoring, add TypeVisitor abstract class. Add RapidJSON as
wesm 1edf2a9
Prototyping out visitor pattern for json serialization
wesm 68ee7ab
Move forward declarations into type_fwd.h
wesm 820b0f2
Drafting JSON schema read/write
wesm 3b9d14e
Add type-specific JSON metadata to schema writer
wesm 86c9559
Add convenience factory functions for common types
wesm 1c08233
JSON schema roundtrip passing for many types
wesm 5fbea41
Implement some more json types and add convenience factory functions
wesm 379da3c
Implement union metadata JSON serialization
wesm 209ba48
More types refactoring. Strange linker error in pyarrow
wesm 15c1094
Add type traits, refactoring, drafting json array writing. not workin…
wesm 932ba7a
Add ArrayVisitor methods, add enough metaprogramming to detect presen…
wesm 2c93cce
WIP JSON array reader code path
wesm 4fc7294
Refactoring, type attribute consistency. Array reader compiles
wesm f26402a
Install type_traits.h. cpplint
wesm 35c2f85
Refactoring. Start drafting string/list reader
wesm 6566343
Recursively construct children for list/struct
wesm 0891378
Declare loop variables
wesm 82f108b
Refactoring. Array test scaffold
wesm e2e86b5
Test JSON array roundtrip for numeric types, strings, lists, structs
wesm 6bbd669
Tweaks
wesm 3d6bbbd
Start high level writer scaffold
wesm 2753449
Complete draft json roundtrip implementation. tests not complete yet
wesm 3d9fcc2
Complete round trip json file test with multiple record batches
wesm a2cf47b
cpplint
wesm 72c24fe
Add a minimal literal JSON example
wesm d13a05f
Compiler warning
wesm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's our policy on
-vs_in filenames`?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure there's a hard and fast rule. Kudu seems to use dashes for internal files (and for unit tests), and
_as a separator in "public" headers:https://github.com/apache/kudu/tree/master/src/kudu/client
so you would have
widget_xyz-test.ccor
widget_xyz.hwidget_xyz-internal.hhttps://google.github.io/styleguide/cppguide.html#File_Names
let me know what you think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Kudu conventions seem fine to me. As long as we have some kind of convention I'm happy with it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. By this reasoning we should rename
bit-util.handmemory-pool.htobit_util.handmemory_pool.h. Can do this here or in another patch