ayushtkn commented on pull request #2440:
URL: https://github.com/apache/hive/pull/2440#issuecomment-872219324
**Output from Beeline using Mysql as backend DB::**
```
0: jdbc:hive2://XX> show create table sys.notification_log;
+----------------------------------------------------+
| createtab_stmt |
+----------------------------------------------------+
| CREATE EXTERNAL TABLE `sys`.`notification_log`( |
| `nl_id` bigint COMMENT 'from deserializer', |
| `event_id` bigint COMMENT 'from deserializer', |
| `event_time` int COMMENT 'from deserializer', |
| `event_type` varchar(32) COMMENT 'from deserializer', |
| `cat_name` varchar(256) COMMENT 'from deserializer', |
| `db_name` varchar(128) COMMENT 'from deserializer', |
| `tbl_name` varchar(256) COMMENT 'from deserializer', |
| `message` string COMMENT 'from deserializer', |
| `message_format` varchar(16) COMMENT 'from deserializer') |
| ROW FORMAT SERDE |
| 'org.apache.hive.storage.jdbc.JdbcSerDe' |
| STORED BY |
| 'org.apache.hive.storage.jdbc.JdbcStorageHandler' |
| WITH SERDEPROPERTIES ( |
| 'serialization.format'='1') |
| TBLPROPERTIES ( |
| 'bucketing_version'='2', |
| 'hive.sql.database.type'='METASTORE', |
| 'hive.sql.query'='SELECT `NL_ID`, `EVENT_ID`, `EVENT_TIME`,
`EVENT_TYPE`, `CAT_NAME`, `DB_NAME`, `TBL_NAME`, `MESSAGE`, `MESSAGE_FORMAT`
FROM `NOTIFICATION_LOG`', |
| 'transient_lastDdlTime'='1625143579') |
+----------------------------------------------------+
21 rows selected (0.206 seconds)
0: jdbc:hive2://XX> select * from notification_log LIMIT 1;
+-------------------------+----------------------------+------------------------------+------------------------------+----------------------------+---------------------------+----------------------------+----------------------------------------------------+----------------------------------+
| notification_log.nl_id | notification_log.event_id |
notification_log.event_time | notification_log.event_type |
notification_log.cat_name | notification_log.db_name |
notification_log.tbl_name | notification_log.message
| notification_log.message_format |
+-------------------------+----------------------------+------------------------------+------------------------------+----------------------------+---------------------------+----------------------------+----------------------------------------------------+----------------------------------+
| 1 | 1 | 1625044586
| CREATE_DATABASE | hive | SYS
| NULL |
H4sIAAAAAAAAAHWPywqDMBRE/yVrm/iu9RO6KrgqZBP1lgR8kRtfiP/eaFYWuppzZwaGuxEEPYEmOSHeyaqCl1ZdpQbROLcurRbv4sQn9p09N04CTnIraLQFfhQ42T1Ooqsv6w/mjIl1RBncQuqA6r43VM4LRWUgz/zQZ7PQIPsRgRlRNoCDqIDBYkB3omFSTcBwRVqXbif92bG5C+4uUFFoITic7F/1cammYeLHcZKl+25/NaoFNKIdLskXSccXWTEBAAA=
| gzip(json-2.0) |
+-------------------------+----------------------------+------------------------------+------------------------------+----------------------------+---------------------------+----------------------------+----------------------------------------------------+----------------------------------+
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]