You can enable certain Drill options for the maprdb format plugin from the Options page in the Drill Web UI or from the command line using the SET and ALTER SYSTEM commands.
http(s)://<drill-hostname-or-ip-address>:8047, and select Options
in the menu bar. Alternatively, enable options from the command line using the SET or ALTER
SYSTEM commands, as
shown:SET `store.hive.maprdb_json.optimize_scan_with_native_reader` = true;You can enable the following Drill options for the maprdb format plugin:
store.hive.maprdb_json.optimize_scan_with_native_readerstore.hive.maprdb_json.optimize_scan_with_native_reader option if you
want Drill to use the native Drill reader to read Hive MapR-DB JSON
tables. When you enable the native Drill reader, Drill typically performs faster
reads of data and applies filter pushdown optimizations.store.hive.maprdb_json.read_timestamp_with_timezone_offsetstore.hive.maprdb_json.optimize_scan_with_native_reader
option.select * from dfs.`/tmp/timestamp`;
-------------------------------------------------------
_id datestring datetimestamp
-------------------------------------------------------
1 2018-01-01 12:12:12.123 2018-01-01 20:12:12.123
2 9999-12-31 23:59:59.999 10000-01-01 07:59:59.999
-------------------------------------------------------select * from dfs.`/tmp/timestamp`;
------------------------------------------------------
_id datestring datetimestamp
------------------------------------------------------
1 2018-01-01 12:12:12.123 2018-01-01 12:12:12.123
2 9999-12-31 23:59:59.999 9999-12-31 23:59:59.999
------------------------------------------------------ select * from dfs.`/tmp/timestamp` where datetimestamp=timestamp '2018-01-01 12:12:12.123';
------------------------------------------------------
_id datestring datetimestamp
------------------------------------------------------
1 2018-01-01 12:12:12.123 2018-01-01 12:12:12.123
------------------------------------------------------ Notice that the WHERE clause uses the `2018-01-01 12:12:12.123` format versus the `2018-01-01 20:12:12.123` format.