You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/03/08 12:50:56 UTC
[GitHub] [pinot] syusuf-r7 opened a new issue #8315: Add LASTWITHTIME to FunctionRegistry
syusuf-r7 opened a new issue #8315:
URL: https://github.com/apache/pinot/issues/8315
LASTWITHTIME queries from a Trino connector fail with
`Unexpected aggregate expression: 'lastwithtime(id,timestamp,'string')'`
When further inspected the logs show:
`org.apache.pinot.common.function.FunctionRegistry Initialized FunctionRegistry with 131 functions: [fromepochminutesbucket, arrayunionint, codepoint, mod, sha256, year, yearofweek, upper, ago, arraycontainsstring, arraydistinctstring, bytestohex, tojsonmapstr, trim, timezoneminute, sqrt, togeometry, normalize, fromepochdays, arraydistinctint, geotoh3, exp, stgeogfromwkb, stgeogfromtext, stgeomfromwkb, jsonpathlong, yow, toepochhoursrounded, lower, toutf8, concat, ceil, todatetime, jsonpathstring, substr, dayofyear, contains, jsonpatharray, arrayindexofint, fromepochhoursbucket, totimestamp, arrayindexofstring, minus, arrayunionstring, toepochhours, toepochdaysrounded, millisecond, fromepochhours, arrayreversestring, dow, doy, min, toepochsecondsrounded, strpos, jsonpath, tosphericalgeography, fromepochsecondsbucket, max, reverse, regexpextract, hammingdistance, stpoint, abs, timezonehour, stgeomfromtext, toepochseconds, arrayconcatint, quarter, md5, ln, toepochminutes, arraysorts
tring, replace, strrpos, jsonpathdouble, stastext, second, arraysortint, split, fromepochdaysbucket, lpad, day, toepochminutesrounded, strcmp, fromdatetime, fromepochseconds, arrayconcatstring, fromtimestamp, base64encode, ltrim, arraysliceint, chr, sha, plus, base64decode, month, arraycontainsint, toepochminutesbucket, startswith, week, jsonformat, sha512, arrayslicestring, fromepochminutes, remove, dayofmonth, times, hour, rpad, arrayremovestring, now, divide, bigdecimaltobytes, floor, toepochsecondsbucket, stasbinary, toepochdaysbucket, hextobytes, rtrim, length, toepochhoursbucket, bytestobigdecimal, toepochdays, arrayreverseint, datetrunc, minute, round, jsonpatharraydefaultempty, dayofweek, arrayremoveint, weekofyear]`
LASTWITHTIME is not included in the above list and therefore cannot be used in the queries
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[GitHub] [pinot] syusuf-r7 commented on issue #8315: Add LASTWITHTIME to FunctionRegistry
Posted by GitBox <gi...@apache.org>.
syusuf-r7 commented on issue #8315:
URL: https://github.com/apache/pinot/issues/8315#issuecomment-1062004620
Hi @elonazoulay 👋🏼 this is the query we're running:
`
SELECT * FROM catalog.default."SELECT LASTWITHTIME(id, timestamp, 'STRING') FROM tableName WHERE someFiled = 'someValue' LIMIT 10";
`
We forked Trino 371 and made a couple of small adjustments to the connector
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[GitHub] [pinot] syusuf-r7 edited a comment on issue #8315: Add LASTWITHTIME to FunctionRegistry
Posted by GitBox <gi...@apache.org>.
syusuf-r7 edited a comment on issue #8315:
URL: https://github.com/apache/pinot/issues/8315#issuecomment-1062004620
Hi @elonazoulay 👋🏼 this is the query we're running:
`
SELECT * FROM catalog.default."SELECT LASTWITHTIME(id, timestamp, 'STRING') FROM tableName WHERE someFiled = 'someValue' LIMIT 10";
`
We forked Trino 371 and made a couple of small adjustments to the connector
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[GitHub] [pinot] elonazoulay commented on issue #8315: Add LASTWITHTIME to FunctionRegistry
Posted by GitBox <gi...@apache.org>.
elonazoulay commented on issue #8315:
URL: https://github.com/apache/pinot/issues/8315#issuecomment-1061952179
Hi @syusuf-r7 ! Can you provide an example query that uses this function? There is a possibility it works in a newer version of the connector (there are some open pull requests).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org