title: How to pass variable arguments to the Cube function in spark sql?
body: <p>How to pass variable arguments to the Cube function in spark sql and also agg function of the cube?</p>
  
  <p>I have a list of columns, and I want to find the cube function on the columns and also aggerations function.</p>
  
  <p>For example:</p>
  
  <pre><code>val columnsInsideCube = List("data", "product","country")
  val aggColumns = List("revenue")
  </code></pre>
  
  <p>I want something like this:</p>
  
  <pre><code>dataFrame.cube(columns:String*).agg(aggcolumns:String*)
  </code></pre>
  
  <p>This is not like passing scala array to the Cube.
  Cube is predefined class in the datafram.we have to send it in a proper manner.</p>