Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-13312

TABLESAMPLE with PERCENT throws FAILED: SemanticException 1:68 Percentage sampling is not supported in org.apache.hadoop.hive.ql.io.HiveInputFormat. Error encountered near token '20'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.2.1
    • None
    • CLI
    • None

    Description

      FAILED: SemanticException 1:68 Percentage sampling is not supported in org.apache.hadoop.hive.ql.io.HiveInputFormat. Error encountered near token '20'
      when I execute

      SELECT * FROM tablename TABLESAMPLE(20 percent);

      tried with ORC and TEXT tables. Confirmed with Gopal, a temporary workaround is

      set hive.tez.input.format=${hive.input.format};

      Attachments

        Activity

          People

            Unassigned Unassigned
            dbist13 Artem Ervits
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: