浏览代码

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

Mahesh Balakrishnan 5 年之前
父节点
当前提交
a7b16c695a
共有 1 个文件被更改,包括 1 次插入0 次删除
  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)