Skip to content

Commit

Permalink
Fix floor translation for MemSQL (#3069)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasirmod17 authored Sep 4, 2024
1 parent b30660d commit e27a45f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ function <<access.private>> meta::relational::functions::sqlQueryToString::memsq
dynaFnToSql('firstMillisecondOfSecond', $allStates, ^ToSql(format='date_trunc(\'second\', %s)')),
dynaFnToSql('firstMinuteOfHour', $allStates, ^ToSql(format='date_trunc(\'hour\', %s)')),
dynaFnToSql('firstSecondOfMinute', $allStates, ^ToSql(format='date_trunc(\'minute\', %s)')),
dynaFnToSql('floor', $allStates, ^ToSql(format='floor(%s)')),
dynaFnToSql('hour', $allStates, ^ToSql(format='hour(%s)')),
dynaFnToSql('indexOf', $allStates, ^ToSql(format='LOCATE(%s)', transform={p:String[2] | $p->at(1) + ', ' + $p->at(0)})),
dynaFnToSql('joinStrings', $allStates, ^ToSql(format='group_concat(%s separator %s)')),
Expand Down

0 comments on commit e27a45f

Please sign in to comment.