title: Pattern.quote not working for \037 character when it is passed to a spark program via oozie
body: <p>I am passing ASCII character \037 (to be used as a field delimiter) to a spark program via oozie. In my oozie property file i have given the value like,</p>
  <pre><code>delimiterArg=\\\037
  </code></pre>
  <p>In my spark program, I am trying to split the line as below</p>
  <pre><code>public static void main(String[] args) {
      String column1 = line.split(Pattern.quote(args[0]));                    
  }
  </code></pre>
  <p>But it is not working. But if I use without <code>Pattern.quote</code>, it is working,</p>
  <pre><code>public static void main(String[] args) {
     String column1 = line.split(args[0]));                               
   }
  </code></pre>
  <p>I would like to use Pattern.quote() as it will handle special characters like Pipe (|). Any suggestions?</p>
  <p>EDIT:</p>
  <p>Here is my complete scenario</p>
  <p>I need to pass the delimiter \037 to spark program which is triggered via oozie job.I will use this as a field delimiter for processing data.</p>
  <p>In order to pass \037 to spark program I have to give \\037 in my job.properties file.</p>
  <p>Now that i have received this value in my spark program and trying to split the input string. Issue is that</p>
  <pre><code>String column1 =  line.split(Pattern.quote(args[0])); // Not Working
  
  
  String column1 =  line.split(args[0])); // Working 
  </code></pre>