Tableau上的SQL Vertica:row_number over partition by multiple fields错误

时间:2017-11-05 00:45:58

标签: sql tableau window-functions vertica row-number

我有一个使用

的查询
row_number() over(partition by a,b)

当我在dbvisualizer中运行查询时,它运行正常。当我尝试在Tableau中将其用作自定义SQL查询时,它会抛出错误:

Error 3537: Incorrect number of parameters for prepared statement _PLAN000011EBDD67590_42

知道我该怎么办?我需要ab分区的数据,但Tableau对此并不满意。

1 个答案:

答案 0 :(得分:2)

很可能不是困扰Tableau的ROW_NUMBER()函数。 “参数数量不正确”通常意味着您在包含例如--- title: "Test" output: pdf_document: pandoc_args: [ "-V", "classoption=twocolumn" ] html_document: default header-includes: - \usepackage{lipsum} # just used for producing example text in document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` ## Two columns of text \lipsum[1-7] \onecolumn ## Once column section. This part should be the whole page width ```{r plot} plot(rnorm(20),rnorm(20)) ``` \lipsum[1] \twocolumn ## Now 2 columns again This section should go back to two columns \lipsum \begin{table*} This is nice, but won't work with R chunks or headers. And you'll have to format with LaTeX code (e.g. \textbf{Foo blaah}). \lipsum[1] \end{table*} \lipsum 的查询中包含不同数量的参数标记,并且您可能尝试在报表的过滤器中传递两个值。

我会检查Tableau想要详细发送的查询,并查看您用来查找不一致的过滤器。