@@ -805,56 +805,56 @@ TEST_F(TabletSchemaTest, test_tablet_schema_need_record_variant_extended_schema)
805805
806806TEST_F (TabletSchemaTest, test_tablet_schema_get_index) {
807807 TabletSchema schema;
808-
808+
809809 TabletColumn col1;
810810 col1.set_unique_id (14001 );
811811 col1.set_name (" test_col1" );
812812 col1.set_type (FieldType::OLAP_FIELD_TYPE_STRING);
813813 schema.append_column (col1);
814-
814+
815815 TabletColumn col2;
816816 col2.set_unique_id (14002 );
817817 col2.set_name (" test_col2" );
818818 col2.set_type (FieldType::OLAP_FIELD_TYPE_VARCHAR);
819819 schema.append_column (col2);
820-
820+
821821 TabletIndex inverted_index;
822822 TabletIndexPB inverted_index_pb;
823823 inverted_index_pb.set_index_id (5001 );
824824 inverted_index_pb.set_index_name (" inverted_idx" );
825825 inverted_index_pb.set_index_type (IndexType::INVERTED);
826826 inverted_index_pb.add_col_unique_id (14001 );
827827 inverted_index.init_from_pb (inverted_index_pb);
828-
828+
829829 TabletIndex bitmap_index;
830830 TabletIndexPB bitmap_index_pb;
831831 bitmap_index_pb.set_index_id (5002 );
832832 bitmap_index_pb.set_index_name (" bitmap_idx" );
833833 bitmap_index_pb.set_index_type (IndexType::BITMAP);
834834 bitmap_index_pb.add_col_unique_id (14001 );
835835 bitmap_index.init_from_pb (bitmap_index_pb);
836-
836+
837837 TabletIndex ann_index;
838838 TabletIndexPB ann_index_pb;
839839 ann_index_pb.set_index_id (5003 );
840840 ann_index_pb.set_index_name (" ann_idx" );
841841 ann_index_pb.set_index_type (IndexType::ANN);
842842 ann_index_pb.add_col_unique_id (14002 );
843843 ann_index.init_from_pb (ann_index_pb);
844-
844+
845845 TabletIndex ngram_bf_index;
846846 TabletIndexPB ngram_bf_index_pb;
847847 ngram_bf_index_pb.set_index_id (5004 );
848848 ngram_bf_index_pb.set_index_name (" ngram_bf_idx" );
849849 ngram_bf_index_pb.set_index_type (IndexType::NGRAM_BF);
850850 ngram_bf_index_pb.add_col_unique_id (14002 );
851851 ngram_bf_index.init_from_pb (ngram_bf_index_pb);
852-
852+
853853 schema.append_index (std::move (inverted_index));
854854 schema.append_index (std::move (bitmap_index));
855855 schema.append_index (std::move (ann_index));
856856 schema.append_index (std::move (ngram_bf_index));
857-
857+
858858 const TabletIndex* found_inverted = schema.get_index (14001 , IndexType::INVERTED, " " );
859859 EXPECT_NE (nullptr , found_inverted);
860860 EXPECT_EQ (" inverted_idx" , found_inverted->index_name ());
@@ -878,13 +878,13 @@ TEST_F(TabletSchemaTest, test_tablet_schema_get_index) {
878878 EXPECT_EQ (" inverted_idx" , empty_suffix->index_name ());
879879 const TabletIndex* with_suffix = schema.get_index (14001 , IndexType::INVERTED, " test_suffix" );
880880 EXPECT_EQ (nullptr , with_suffix);
881-
881+
882882 EXPECT_TRUE (found_inverted->is_inverted_index ());
883883 EXPECT_EQ (IndexType::INVERTED, found_inverted->index_type ());
884884 EXPECT_EQ (IndexType::BITMAP, found_bitmap->index_type ());
885885 EXPECT_EQ (IndexType::ANN, found_ann->index_type ());
886886 EXPECT_EQ (IndexType::NGRAM_BF, found_ngram_bf->index_type ());
887-
887+
888888 const auto & inverted_col_ids = found_inverted->col_unique_ids ();
889889 EXPECT_EQ (1 , inverted_col_ids.size ());
890890 EXPECT_EQ (14001 , inverted_col_ids[0 ]);
0 commit comments