Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-4954

allTextMode in the MapRDB plugin always return nulls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.9.0
    • Storage - MapRDB
    • None
    • MapRDB

    Description

      Setting the "allTextMode" option to "true" in the MapR fs plugin, like:

      "formats": {
      "maprdb":

      { "type": "maprdb", "allTextMode": true }

      makes the returned results null. Here’s an example:

      << default plugin, unchanged >>

      0: jdbc:drill:> use mfs.tpch_sf1_maprdb_json;
      -------------------------------------------------------------+

      ok summary

      -------------------------------------------------------------+

      true Default schema changed to [mfs1.tpch_sf1_maprdb_json]

      -------------------------------------------------------------+
      1 row selected (0.153 seconds)
      0: jdbc:drill:> select typeof(N_REGIONKEY) from nation limit 1;
      ---------

      EXPR$0

      ---------

      BIGINT

      ---------
      1 row selected (0.206 seconds)
      0: jdbc:drill:> select N_REGIONKEY from nation limit 2;
      --------------

      N_REGIONKEY

      --------------

      0
      2

      --------------
      2 rows selected (0.254 seconds)

      << plugin changed to all text mode (as shown above) >>

      0: jdbc:drill:> select typeof(N_REGIONKEY) from nation limit 1;
      ---------

      EXPR$0

      ---------

      NULL

      ---------
      1 row selected (0.321 seconds)
      0: jdbc:drill:> select N_REGIONKEY from nation limit 2;
      --------------

      N_REGIONKEY

      --------------

      null
      null

      --------------
      2 rows selected (0.25 seconds)

      Attachments

        Issue Links

          Activity

            People

              smidth Smidth Panchamia
              ben-zvi Boaz Ben-Zvi
              Abhishek Girish Abhishek Girish
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: