private function removeAdditionalTableDuplicateFields()
    {
        $columns = $this->getSelect()->getPart(\Zend_Db_Select::COLUMNS);

        foreach ($columns as $idx => $column) {
            if ($column[0] == 'additional_table' && $column[1] == "*") {
                unset($columns[$idx]);
            }
        }

        $this->getSelect()->setPart(\Zend_Db_Select::COLUMNS, $columns);

        foreach ($this->getAdditionalTableFields() as $fieldName) {
            $this->getSelect()->columns([$fieldName => sprintf("additional_table.%s", $fieldName)]);
        }

        return $this;
    }
private function removeAdditionalTableDuplicateFields()
    {
        $columns = $this->getSelect()->getPart(\Zend_Db_Select::COLUMNS);

        foreach ($columns as $idx => $column) {
            if ($column[0] == 'additional_table' && $column[1] == "*") {
                unset($columns[$idx]);
            }
        }

        $this->getSelect()->setPart(\Zend_Db_Select::COLUMNS, $columns);

        foreach ($this->getAdditionalTableFields() as $fieldName) {
            $this->getSelect()->columns([$fieldName => sprintf("additional_table.%s", $fieldName)]);
        }

        return $this;
    }
private function removeAdditionalTableDuplicateFields ( ) { $ columns = $ this -> getSelect ( ) -> getPart ( \ Zend_Db_Select :: COLUMNS ) ; foreach ( $ columns as $ idx => $ column ) { if ( $ column [ 0 ] == 'additional_table' && $ column [ 1 ] == "*" ) { unset ( $ columns [ $ idx ] ) ; } } $ this -> getSelect ( ) -> setPart ( \ Zend_Db_Select :: COLUMNS , $ columns ) ; foreach ( $ this -> getAdditionalTableFields ( ) as $ fieldName ) { $ this -> getSelect ( ) -> columns ( [ $ fieldName => sprintf ( "additional_table.%s" , $ fieldName ) ] ) ; } return $ this ; }
Clean collection select to remove duplicated fields.

@return \Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\FilterableAttribute\Category\Collection
Clean collection select to remove duplicated fields .