sadikovi / spark-netflow

NetFlow data source for Spark SQL and DataFrames
Apache License 2.0
18 stars 11 forks source link

Count with zero columns #75

Closed sadikovi closed 7 years ago

sadikovi commented 7 years ago

Currently, when we run count, we use single column unix_secs to return as part of Array[Object]. This PR updates scan planner and default source, so we run count on 0 columns, each InternalRow is empty.

codecov-io commented 7 years ago

Codecov Report

Merging #75 into master will decrease coverage by 0.01%. The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #75      +/-   ##
==========================================
- Coverage   93.98%   93.97%   -0.02%     
==========================================
  Files          12       12              
  Lines         449      448       -1     
  Branches       35       37       +2     
==========================================
- Hits          422      421       -1     
  Misses         27       27