MCPcopy Create free account
hub / github.com/apache/impala / HdfsTableWriter

Method HdfsTableWriter

be/src/exec/hdfs-table-writer.cc:29–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace impala {
28
29HdfsTableWriter::HdfsTableWriter(TableSinkBase* parent,
30 RuntimeState* state, OutputPartition* output,
31 const HdfsPartitionDescriptor* partition_desc, const HdfsTableDescriptor* table_desc)
32 : parent_(parent),
33 state_(state),
34 output_(output),
35 table_desc_(table_desc),
36 output_expr_evals_(parent->output_expr_evals()) {
37 int num_non_partition_cols =
38 table_desc_->num_cols() - table_desc_->num_clustering_cols();
39 if (!table_desc_->IsIcebergTable() || table_desc_->IcebergFormatVersion() < 3) {
40 DCHECK_GE(output_expr_evals_.size(), num_non_partition_cols)
41 << parent_->DebugString();
42 }
43}
44
45Status HdfsTableWriter::Write(const uint8_t* data, int32_t len) {
46 DCHECK_GE(len, 0);

Callers

nothing calls this directly

Calls 6

num_colsMethod · 0.80
num_clustering_colsMethod · 0.80
IsIcebergTableMethod · 0.80
IcebergFormatVersionMethod · 0.80
sizeMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected