spark 2.3.1是否可以使用Raw SQL指定水印?

时间:2018-07-15 07:02:28

标签: apache-spark

spark 2.3.1是否可以使用Raw SQL指定水印?我看到了//add a spring util namespace xmlns:util="http://www.springframework.org/schema/util //schemaLocation http://www.springframework.org/schema/util <util:map id="headerMap" map-class="java.util.HashMap"> <entry key="Access-Control-Allow-Origin"> <value>*</value> </entry> ....so on </util:map> <bean id="corsFilter" class="CorsFilter"> <property name="header" ref="headerMap"/> </bean> public class CorsFilter extends OncePerRequestFilter { Map<String,String> header; @Override protected void doFilterInternal(final HttpServletRequest request, final HttpServletResponse response, final FilterChain filterChain) throws ServletException, IOException { for(Entry<String,String> entry : header.entrySet()){ response.addHeader(entry.getKey(), entry.getValue()); } filterChain.doFilter(request, response); } } ,但是我正在寻找一种可以通过Raw SQl指定水印的方法。也许是UDF?我可以写一个吗?

0 个答案:

没有答案