You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2019/10/11 09:06:17 UTC

[GitHub] [incubator-doris] yangzhg commented on a change in pull request #1952: add create_time to information_schema.tables (issue #1909)

yangzhg commented on a change in pull request #1952: add create_time to information_schema.tables (issue #1909)
URL: https://github.com/apache/incubator-doris/pull/1952#discussion_r333895960
 
 

 ##########
 File path: be/src/exec/schema_scanner/schema_tables_scanner.cpp
 ##########
 @@ -176,15 +176,30 @@ Status SchemaTablesScanner::fill_one_row(Tuple *tuple, MemPool *pool) {
     }
     // creation_time
     {
-        tuple->set_null(_tuple_desc->slots()[14]->null_indicator_offset());
+        void *slot = tuple->get_slot(_tuple_desc->slots()[14]->tuple_offset());
+        DateTimeValue *time_slot = reinterpret_cast<DateTimeValue*>(slot);
+        int64_t create_time = tbl_status.create_time;
+        if (create_time <= 0) {
+            tuple->set_null(_tuple_desc->slots()[14]->null_indicator_offset());
+        } else {
 
 Review comment:
   done

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org