-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
return type of UserDefinedFunction is not defined #130
Comments
Hi, sorry for the late answer. I have some trouble to see what it the exact problem. If I understand well, you've got a problem in queries like: SELECT my_UDF_returning_a_timestamp(...)
FROM .... Is it correct? Do you have any error message that can help me better understand the issue? When does this error occur? During the query parsing, while translating or when formatting the query result into VOTable (or any other format)? |
There is no error, it's just that the return type is not what I would expect, and it defaults to |
So, the problem is in the result file returned by TAP ? |
Yes, correct |
Ok, then 2 things:
In conclusion, with 1. fixed, there will be a Currently, I don't think there is anything simple you can do to fix (even temporarily) this issue, unless you want to change a core class of the library in a fork. I will commit tomorrow (or beginning of next week) the merge of Anyway, did I answer to all your questions? |
Yes, thanks. It was very clear. I will wait for adql 2.1 to be released. I get a Timestamp from the DB, and I format it properly using STIL. The only thing that is wrong is the metadata. |
I developed some custom functions by implementing
UserDefinedFunction
. One of these functions returns a Timestamp (a DATE in the signature), but when it is in one of the return columns theDBType
is null.I think this is because the ADQL parser only considers instances of
DefaultUDF
and not ofUserDefinedFunction
. I can't extendDefaultUDF
, because it's final.I can't easily get rid of the custom classes for each function, because I rely this in other parts of the code, is there any other way around it?
The text was updated successfully, but these errors were encountered: