Skip to content

Conversation

@icexelloss
Copy link
Contributor

This patch:

  • Refactor JsonReader and remove static helper function in vector classes
  • Fix integration test

@icexelloss icexelloss changed the base branch from master to java-vector-refactor November 7, 2017 18:19
@icexelloss
Copy link
Contributor Author

cc @BryanCutler @siddharthteotia

This patch cleans up JsonReader.

@BryanCutler
Copy link
Member

+1, I prefer it this way to keep the vector classes cleaner

@icexelloss icexelloss changed the title [ARROW-1717] Refactor JsonReader [ARROW-1431] [ARROW-1717] Refactor JsonReader Nov 7, 2017
@icexelloss icexelloss changed the title [ARROW-1431] [ARROW-1717] Refactor JsonReader [ARROW-1431][ARROW-1717] Refactor JsonReader Nov 7, 2017
@icexelloss icexelloss changed the title [ARROW-1431][ARROW-1717] Refactor JsonReader ARROW-1717: Refactor JsonReader Nov 7, 2017
@icexelloss
Copy link
Contributor Author

This also fixes ARROW-1431

ArrowBuf buf = allocator.buffer(bufferSize);

// C++ integration test fails without this.
buf.setZero(0, bufferSize);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@icexelloss
Copy link
Contributor Author

Ping @siddharthteotia

Thoughts?

@siddharthteotia
Copy link
Contributor

LGTM.

My two cents:

We should be little careful of adding patches to refactor branch since that essentially requires to grab and retest the changes downstream with Dremio.

Currently there are two patches in refactor branch and there is a 3rd one coming in (changes that were discovered as part of testing in Dremio). So there is a good chance of conflict as well.

My suggestion is that if there is some cleanup necessary, it can easily be done after refactor branch is merged into master.

@icexelloss
Copy link
Contributor Author

My suggestion is that if there is some cleanup necessary, it can easily be done after refactor branch is merged into master.

@siddharthteotia When are you planning to merge refactor branch to master?

@icexelloss
Copy link
Contributor Author

Let's merge this patch? We can discuss what should we do to concurrently work on refactor. I think @BryanCutler also has a patch that he wants to merge in (arrow ipc refactor).

@icexelloss
Copy link
Contributor Author

Ping @siddharthteotia

When do you plan to merge this branch into master? In the meantime, should we wait until then before working on new refactor-related patches? Just want to make sure we have a way to make forward progress independently.

@siddharthteotia
Copy link
Contributor

There are about 4 regression test failures remaining to be fixed. Rest of the functional testing looks good with Dremio. Perf testing in progress. This week, we should be able to start the process of formal approval of merging this branch into master. As I had mentioned earlier about the 3rd patch w.r.t changes made to Arrow as part of testing in Dremio, the PR should land in by EOD.

@icexelloss
Copy link
Contributor Author

Thanks for the update. I think this patch shouldn't affect Dremio tests, it only touches json reader and integration test. How about we merge this?

Also, should we work on items on https://issues.apache.org/jira/browse/ARROW-1463 after the merge?

@siddharthteotia
Copy link
Contributor

Sure, let's merge this since the changes are fairly isolated. I will be putting up third patch today EOD. Our performance testing is complete and we have seen overall improvement in TPCH.

Will send out an email on the mailing list updating everyone and starting the formal process of merging java-vector-refactor into master. Will also talk about the follow-up items.

Are the integration test issues fixed? I suppose they are not JAVA vector code problem.

cc @jacques-n

@icexelloss
Copy link
Contributor Author

The integration tests passed.

It failed previously due to issue with JsonReader during refactoring.

@siddharthteotia
Copy link
Contributor

+1

@wesm
Copy link
Member

wesm commented Nov 14, 2017

I'm going to test this locally and then merge into the refactor branch

@wesm
Copy link
Member

wesm commented Nov 14, 2017

Merged in a2fa461, thanks all!

@wesm wesm closed this Nov 14, 2017
@wesm wesm deleted the json-reader-refactor branch November 14, 2017 02:16
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