Sfoglia il codice sorgente

HUE-9517 [solr] fix for CSV file with pipe seperator or any seperator when importing

Mahesh Balakrishnan 5 anni fa
parent
commit
a7b16c695a
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      desktop/libs/indexer/src/indexer/api3.py

+ 1 - 0
desktop/libs/indexer/src/indexer/api3.py

@@ -529,6 +529,7 @@ def _small_indexing(user, fs, client, source, destination, index_name):
   _create_solr_collection(user, fs, client, destination, index_name, kwargs)
 
   if source['inputFormat'] == 'file':
+    kwargs['separator'] = source['format']['fieldSeparator']
     path = urllib_unquote(source["path"])
     data = fs.read(path, 0, MAX_UPLOAD_SIZE)