Skip to content

Commit

Permalink
re-enable test
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhyde committed Mar 20, 2023
1 parent 60c6269 commit 7d39e15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,10 @@ public static String buildQueryAgg(String expression) {
* @return Query that evaluates a scalar expression
*/
protected String buildQuery2(SqlTestFactory factory, String expression) {
if (expression.matches("(?i).*percentile_(cont|disc).*")) {
if (expression.matches("(?i).*(percentile_(cont|disc)|convert)\\(.*")) {
// PERCENTILE_CONT requires its argument to be a literal,
// so converting its argument to a column will cause false errors.
// Similarly, MSSQL-style CONVERT.
return buildQuery(expression);
}
// "values (1 < 5)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,6 @@ protected SqlOperatorFixture fixture() {
f.checkNull("convert(DATE, NULL)");
}

@Disabled("Need to add exception for MSSQL CONVERT 'style' argument being a literal.")
@Test void testMssqlConvertWithStyle() {
final SqlOperatorFixture f = fixture();
f.setFor(SqlLibraryOperators.MSSQL_CONVERT, VmName.EXPAND);
Expand Down

0 comments on commit 7d39e15

Please sign in to comment.