title: Not able to use max and sum functions in Pig
body: <p>I am trying to run a query to find the max of a column of double type and it give me this error</p>
  
  <blockquote>
    <p>Could not Infer the matching function for org.apache.builtin.MAX as
    multiple or none of them fit . Please use am explicit cast.</p>
  </blockquote>
  
  <p>And my structure for the data is as following:</p>
  
  <pre><code>maxtest: {name: chararray, value: double}
  </code></pre>