Open kingbari opened 5 years ago
When I use the catalog below to retrieve the timestamp with a value of: 1552413600000, SHC returns: 3545798771364410166. Why is that?
1552413600000
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()
When I use the catalog below to retrieve the timestamp with a value of:
1552413600000
, SHC returns:3545798771364410166
. Why is that?