Closed GumpacG closed 1 year ago
Internal tracking: W-14125655
The Filter.slicing_Q_date_month_instance_filter tests the Tableau DATEPART('month', [Order Date]
)` function.
The expected file shows that all values 1 through 12 are expected.
I'd recommend looking in the dialect definition of the DATEPART
function to verify that looks correct for your underlying data source. Example:
<date-function name='DATEPART' return-type='int'>
...
<formula part='month'>MONTH(%2)</formula> // example
..
<argument type='localstr' />
<argument type='datetime' />
</date-function>
Will take a look further. Thanks!
About You: Name: Guian Gumpac Company: Improving
Your question: Why is the expected for
SELECT MONTH(`Staples`.`Order Date`)
a column of 1s when it should be 5s and 6s?The test case
Filter.slicing_Q_date_month_instance_filter
has expected result and generated SQL:I get a failure because the actual is a column of 5s. For context I run the query:
and get this result: