What is the preferred way to avoid SQL injections in Spark-SQL (on Hive)

后端 未结 1 732
清酒与你
清酒与你 2020-12-19 11:14

Assume a SchemaRDD rdd with a registered table customer. You want to filter out records according to a user input. One idea you might have how to d

相关标签:
1条回答
  • 2020-12-19 11:26

    One option would be to use the thriftserver to expose jdbc, and then the usual techniques could be used (PreparedStatement etc.) to prevent sql injection.

    0 讨论(0)
提交回复
热议问题