Skip to content

Commit

Permalink
fix additional failures
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjoon-hyun committed Apr 7, 2020
1 parent 18e6932 commit 65c2a32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Partition Values [ds=2017-08-01, hr=10]
Location [not included in comparison]sql/core/spark-warehouse/t/ds=2017-08-01/hr=10
Created Time [not included in comparison]
Last Access [not included in comparison]
Partition Statistics 1121 bytes, 3 rows
Partition Statistics 1189 bytes, 3 rows

# Storage Information
Location [not included in comparison]sql/core/spark-warehouse/t
Expand Down Expand Up @@ -128,7 +128,7 @@ Partition Values [ds=2017-08-01, hr=10]
Location [not included in comparison]sql/core/spark-warehouse/t/ds=2017-08-01/hr=10
Created Time [not included in comparison]
Last Access [not included in comparison]
Partition Statistics 1121 bytes, 3 rows
Partition Statistics 1189 bytes, 3 rows

# Storage Information
Location [not included in comparison]sql/core/spark-warehouse/t
Expand All @@ -155,7 +155,7 @@ Partition Values [ds=2017-08-01, hr=11]
Location [not included in comparison]sql/core/spark-warehouse/t/ds=2017-08-01/hr=11
Created Time [not included in comparison]
Last Access [not included in comparison]
Partition Statistics 1098 bytes, 4 rows
Partition Statistics 1166 bytes, 4 rows

# Storage Information
Location [not included in comparison]sql/core/spark-warehouse/t
Expand Down Expand Up @@ -190,7 +190,7 @@ Partition Values [ds=2017-08-01, hr=10]
Location [not included in comparison]sql/core/spark-warehouse/t/ds=2017-08-01/hr=10
Created Time [not included in comparison]
Last Access [not included in comparison]
Partition Statistics 1121 bytes, 3 rows
Partition Statistics 1189 bytes, 3 rows

# Storage Information
Location [not included in comparison]sql/core/spark-warehouse/t
Expand All @@ -217,7 +217,7 @@ Partition Values [ds=2017-08-01, hr=11]
Location [not included in comparison]sql/core/spark-warehouse/t/ds=2017-08-01/hr=11
Created Time [not included in comparison]
Last Access [not included in comparison]
Partition Statistics 1098 bytes, 4 rows
Partition Statistics 1166 bytes, 4 rows

# Storage Information
Location [not included in comparison]sql/core/spark-warehouse/t
Expand All @@ -244,7 +244,7 @@ Partition Values [ds=2017-09-01, hr=5]
Location [not included in comparison]sql/core/spark-warehouse/t/ds=2017-09-01/hr=5
Created Time [not included in comparison]
Last Access [not included in comparison]
Partition Statistics 1144 bytes, 2 rows
Partition Statistics 1212 bytes, 2 rows

# Storage Information
Location [not included in comparison]sql/core/spark-warehouse/t
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1355,23 +1355,23 @@ class StatisticsSuite extends StatisticsCollectionTestBase with TestHiveSingleto
// analyze table
sql(s"ANALYZE TABLE $tblName COMPUTE STATISTICS NOSCAN")
var tableStats = getTableStats(tblName)
assert(tableStats.sizeInBytes == 567)
assert(tableStats.sizeInBytes == 601)
assert(tableStats.rowCount.isEmpty)

sql(s"ANALYZE TABLE $tblName COMPUTE STATISTICS")
tableStats = getTableStats(tblName)
assert(tableStats.sizeInBytes == 567)
assert(tableStats.sizeInBytes == 601)
assert(tableStats.rowCount.get == 1)

// analyze a single partition
sql(s"ANALYZE TABLE $tblName PARTITION (ds='2019-12-13') COMPUTE STATISTICS NOSCAN")
var partStats = getPartitionStats(tblName, Map("ds" -> "2019-12-13"))
assert(partStats.sizeInBytes == 567)
assert(partStats.sizeInBytes == 601)
assert(partStats.rowCount.isEmpty)

sql(s"ANALYZE TABLE $tblName PARTITION (ds='2019-12-13') COMPUTE STATISTICS")
partStats = getPartitionStats(tblName, Map("ds" -> "2019-12-13"))
assert(partStats.sizeInBytes == 567)
assert(partStats.sizeInBytes == 601)
assert(partStats.rowCount.get == 1)
}
}
Expand Down

0 comments on commit 65c2a32

Please sign in to comment.