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

Bloom Functional Index creation without function fails

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 1.0.0
    • None

    Description

      is this expected behavior? We should be able to create a bloom_filters index on any column without having to specify any options, including a conversion function. Also lets allow for users to configure the bloom filter - number of bits, fp ratio etc? 

      spark-sql (default)> create index idx_bloom1 on hudi_table using bloom_filters(city);
      24/11/16 10:04:44 ERROR SparkSQLDriver: Failed in [create index idx_bloom1 on hudi_table using bloom_filters(city)]
      org.apache.hudi.exception.HoodieIndexException: Unknown hoodie index type:bloom_filters
      	at org.apache.hudi.index.secondary.SecondaryIndexType.lambda$of$3(SecondaryIndexType.java:55)
      	at java.util.Optional.orElseThrow(Optional.java:290)
      	at org.apache.hudi.index.secondary.SecondaryIndexType.of(SecondaryIndexType.java:54)
      	at org.apache.hudi.index.secondary.HoodieSecondaryIndex$Builder.setIndexType(HoodieSecondaryIndex.java:112)
      	at org.apache.hudi.index.secondary.SecondaryIndexManager.create(SecondaryIndexManager.java:110)
      	at org.apache.spark.sql.hudi.command.CreateIndexCommand.run(IndexCommands.scala:60)
       

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: