Github user jinossy commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/1033#discussion_r65037985
  
    --- Diff: 
tajo-storage/tajo-storage-hdfs/src/main/java/org/apache/tajo/storage/sequencefile/SequenceFileScanner.java
 ---
    @@ -104,7 +105,15 @@ public void init() throws IOException {
           nullChars = nullCharacters.getBytes();
         }
     
    -    String delim  = 
meta.getProperty(StorageConstants.SEQUENCEFILE_DELIMITER, 
StorageConstants.DEFAULT_FIELD_DELIMITER);
    +
    +    // Set value of non-deprecated key for compatibility. It will be used 
at CSVLineSerDe::getFieldDelimiter.
    +    KeyValueSet keyValueSet = meta.getPropertySet();
    +    if (!keyValueSet.containsKey(StorageConstants.TEXT_DELIMITER)
    +      && keyValueSet.containsKey(StorageConstants.SEQUENCEFILE_DELIMITER)) 
{
    +      keyValueSet.set(StorageConstants.TEXT_DELIMITER, 
meta.getProperty(StorageConstants.SEQUENCEFILE_DELIMITER));
    +    }
    +
    +    String delim  = meta.getProperty(StorageConstants.TEXT_DELIMITER, 
StorageConstants.DEFAULT_FIELD_DELIMITER);
    --- End diff --
    
    remove unused code


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to