当我使用下面的目录检索值为1552413600000
的时间戳时,SHC返回:3545798771364410166
。为什么会这样?
val catalog = s"""{
|"table": {
| "namespace": "default",
| "name": "Accounts",
| "tableCoder": "PrimitiveType"
|},
|"rowkey": "Key",
|"columns": {
| "id": {"cf": "rowkey", "col": "Key", "type": "string"},
| "account": {"cf": "Meta", "col": "Account", "type": "string"},
| "timestamp": {"cf": "Meta", "col": "Timestamp", "type": "long"}
|}
|}""".stripMargin
def withCatalog(catalog: String): DataFrame = {
spark.sqlContext
.read
.options(Map(HBaseTableCatalog.tableCatalog -> catalog))
.format("org.apache.spark.sql.execution.datasources.hbase")
.load()
}
val df = withCatalog(catalog)
df.show()