title: dynamically bind variable/parameter in Spark SQL?
body: <p>How to bind variable in Apache Spark SQL? For example: </p>
  
  <pre><code>val sqlContext = new org.apache.spark.sql.hive.HiveContext(sc)
  sqlContext.sql("SELECT * FROM src WHERE col1 = ${VAL1}").collect().foreach(println)
  </code></pre>