Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix type missmatch
  • Loading branch information
debugger87 committed Aug 11, 2017
commit c833ce7aa5f2ba0b684494fd1b24b7995f1c09c9
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ object CatalogStorageFormat {
case class CatalogTablePartition(
spec: CatalogTypes.TablePartitionSpec,
storage: CatalogStorageFormat,
parameters: Map[String, String] = Map.empty,
createTime: Long = System.currentTimeMillis,
lastAccessTime: Long = -1,
parameters: Map[String, String] = Map.empty) {
lastAccessTime: Long = -1) {

def toLinkedHashMap: mutable.LinkedHashMap[String, String] = {
Copy link
Member

Choose a reason for hiding this comment

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

You also need to add it to this map for display

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gatorsmile Thanks for your reminding, i will add it.

val map = new mutable.LinkedHashMap[String, String]()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1006,10 +1006,10 @@ private[hive] object HiveClientImpl {
compressed = apiPartition.getSd.isCompressed,
properties = Option(apiPartition.getSd.getSerdeInfo.getParameters)
.map(_.asScala.toMap).orNull),
createTime = apiPartition.getCreateTime.toLong * 1000,
lastAccessTime = apiPartition.getLastAccessTime.toLong * 1000,
parameters =
if (hp.getParameters() != null) hp.getParameters().asScala.toMap else Map.empty)
if (hp.getParameters() != null) hp.getParameters().asScala.toMap else Map.empty,
createTime = apiPartition.getCreateTime.toLong * 1000,
lastAccessTime = apiPartition.getLastAccessTime.toLong * 1000)
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a comma to the end?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cxzl25 yeah, it's my mistake, i will fix it

}

// Below is the key of table properties for storing Hive-generated statistics
Expand Down