forked from KarthikTunga/impala
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor thrift for ext-data-source to generate only necessary structs
ext-data-source only needs a small subset of the thrift structures, so this separates the dependencies between files so that just the necessary structs are generated for ext-data-source. Afterwards, we can remove extra maven dependencies which were using environment variables to get versions. While the environment variables work when building the pom, they are not propagated to dependencies so building fe/pom.xml ended up producing lots of warnings which are now gone. Change-Id: I267fe7bc7a54c3c21aad8c1ffce07cf1a1e07c5e Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3748 Reviewed-by: Matthew Jacobs <[email protected]> Tested-by: jenkins (cherry picked from commit 1f73896) Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3767
- Loading branch information
Matthew Jacobs
authored and
jenkins
committed
Aug 5, 2014
1 parent
419c1e6
commit 162d745
Showing
17 changed files
with
123 additions
and
71 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Copyright 2012 Cloudera Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
namespace cpp impala | ||
namespace java com.cloudera.impala.thrift | ||
|
||
include "Data.thrift" | ||
include "Types.thrift" | ||
include "CatalogObjects.thrift" | ||
|
||
// Serialized, self-contained version of a RowBatch (in be/src/runtime/row-batch.h). | ||
struct TRowBatch { | ||
// total number of rows contained in this batch | ||
1: required i32 num_rows | ||
|
||
// row composition | ||
2: required list<Types.TTupleId> row_tuples | ||
|
||
// There are a total of num_rows * num_tuples_per_row offsets | ||
// pointing into tuple_data. | ||
// An offset of -1 records a NULL. | ||
3: list<i32> tuple_offsets | ||
|
||
// binary tuple data | ||
// TODO: figure out how we can avoid copying the data during TRowBatch construction | ||
4: string tuple_data | ||
|
||
// Indicates the type of compression used | ||
5: required CatalogObjects.THdfsCompression compression_type | ||
|
||
// Indicates the uncompressed size | ||
6:i32 uncompressed_size | ||
} | ||
|
||
struct TResultSetMetadata { | ||
1: required list<CatalogObjects.TColumn> columns | ||
} | ||
|
||
// List of rows and metadata describing their columns. | ||
struct TResultSet { | ||
1: required list<Data.TResultRow> rows | ||
2: required TResultSetMetadata schema | ||
} | ||
|
This file contains 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 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 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 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