Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-8534

Ensure index creation is idempotent in face of failures

    XMLWordPrintableJSON

Details

    • Task
    • Status: Patch Available
    • Blocker
    • Resolution: Unresolved
    • None
    • 1.0.0
    • None

    Description

      We need to ensure the user can execute `CREATE INDEX name ...`. with same name, failing many times and then be able to eventually succeed with the right syntax/parameters. 

      spark-sql (default)> create index idx_bloom on hudi_table using bloom_filter(city) options(func='lower');
      
      24/11/16 09:58:44 ERROR SparkSQLDriver: Failed in [create index idx_bloom on hudi_table using bloom_filter(city) options(func='lower')]
      java.lang.IllegalArgumentException: The value of hoodie.functional.index.type should be one of COLUMN_STATS,BLOOM_FILTERS,SECONDARY_INDEX, but was bloom_filter
      
      spark-sql (default)> create index idx_bloom on hudi_table using bloom_filters(city) options(func='lower');
      24/11/16 09:59:11 ERROR SparkSQLDriver: Failed in [create index idx_bloom on hudi_table using bloom_filters(city) options(func='lower')]
      java.lang.IllegalArgumentException: The value of hoodie.functional.index.type should be one of COLUMN_STATS,BLOOM_FILTERS,SECONDARY_INDEX, but was bloom_filter
       

      Attachments

        Issue Links

          Activity

            People

              ljain Lokesh Jain
              vinoth Vinoth Chandar
              Sagar Sumit
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: