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

When I run `CREATE TABLE new_table LIKE avro_table`, the schema does not get mapped properly from an Avro schema to a Hive schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      I have an Avro-backed table called vcf_flat. I run the following commands from the Hive shell:

      CREATE TABLE vcf_flat_whitelisted LIKE vcf_flat;
      ALTER TABLE vcf_flat_whitelisted SET FILEFORMAT SEQUENCEFILE;

      No errors, and I can see the table when I run `SHOW TABLES;`:

      hive> SHOW TABLES;
      OK
      cosmic
      dbsnp
      sample_07
      sample_08
      vcf_flat
      vcf_flat_text
      vcf_flat_whitelisted
      Time taken: 0.061 seconds

      However, this is the output for `DESCRIBE vcf_flat_whitelisted`:

      FAILED: SemanticException [Error 10001]: Table not found vcf_flat_whitelisted

      Attachments

        Activity

          People

            Unassigned Unassigned
            laserson Uri Laserson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: