git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create user-defined data types in calcite?


I am adding Kevin to the committers list, and I am seeing the problem of mixed changes - recently Michael has edited the site to add two PMC members, and Shuyi has added documentation for CREATE TYPE. We want the former to appear on the site, but the latter should wait until the release.

I propose to create a “site” git branch that cherry-picks changes that we wish to have appear on the site immediately.

On each release, it would be in sync with master, but might start to differ when we add documentation for features. It would sync up on the next release.

Any comments/objections?

Julian


> On Apr 24, 2018, at 10:17 PM, Shuyi Chen <suez1224@xxxxxxxxx> wrote:
> 
> You are right. Thanks a lot for the explanation, Julian.
> 
> On Tue, Apr 24, 2018 at 12:27 PM, Julian Hyde <jhyde@xxxxxxxxxx> wrote:
> 
>> I think it’s misleading to end-users if the web site contains features
>> that have not yet been released. So, we aim to re-generate the web site
>> just after a release. (For non product-related stuff, such as committers
>> and upcoming talks, we change the web site continuously. The person
>> maintaining the web site has to be a bit careful not to publish the wrong
>> stuff.)
>> 
>> 
>>> On Apr 21, 2018, at 10:13 PM, Shuyi Chen <suez1224@xxxxxxxxx> wrote:
>>> 
>>> @Julian, thanks for reviewing the code. I think we need to regenerate the
>>> website as well so that it contains the latest documentation on type
>>> collection and type DDLs. Let me know how I can help.
>>> 
>>> @Valli, with the latest master, you should be able to either use CREATE
>>> TYPE statement to define your own type or define your new type in the
>> JSON
>>> schema.
>>> 
>>> On Sat, Apr 21, 2018 at 12:48 AM, Shuyi Chen <suez1224@xxxxxxxxx> wrote:
>>> 
>>>> Thanks a lot for your time , Julian. Let me know if you need anything.
>>>> 
>>>> shuyi
>>>> On Fri, Apr 20, 2018 at 5:57 PM Julian Hyde <jhyde@xxxxxxxxxx> wrote:
>>>> 
>>>>> Yes, I’ve ignored that change for a couple of months (sorry Shuyi) but
>> I
>>>>> reviewed it yesterday and am currently testing, so it should be
>> committed
>>>>> to master shortly.
>>>>> 
>>>>>> On Apr 20, 2018, at 5:41 PM, Shuyi Chen <suez1224@xxxxxxxxx> wrote:
>>>>>> 
>>>>>> Currently, user defined type is not supported in Calcite. But it's
>> WIP,
>>>>>> please see https://issues.apache.org/jira/browse/CALCITE-2045. With
>>>>> this
>>>>>> PR, you can either use CREATE TYPE statement to define your own type
>> or
>>>>>> define your new type in the JSON schema.
>>>>>> 
>>>>>> Thanks
>>>>>> Shuyi
>>>>>> 
>>>>>> 
>>>>>> On Fri, Apr 20, 2018 at 4:27 AM, Valli Annamalai <
>>>>> aishwaryaanns@xxxxxxxxx>
>>>>>> wrote:
>>>>>> 
>>>>>>> I want to parse a query having 'text' in place of 'varchar'. For
>>>>>>> example, select
>>>>>>> cast(ps_comment as text) from part While parsing calcite is showing,
>>>>>>> Unknown data type name 'TEXT'.
>>>>>>> 
>>>>>>> How can I make calcite to parse the above query successfully having
>>>>>>> user-defined data type 'text'?
>>>>>>> 
>>>>>>> 
>>>>>>> Thanks in advance
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> "So you have to trust that the dots will somehow connect in your
>>>>> future."
>>>>> 
>>>>> --
>>>> "So you have to trust that the dots will somehow connect in your
>> future."
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> "So you have to trust that the dots will somehow connect in your future."
>> 
>> 
> 
> 
> -- 
> "So you have to trust that the dots will somehow connect in your future."




( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-calcite-development/msg03310.html on line 170
Call Stack
#TimeMemoryFunctionLocation
10.0006368792{main}( ).../msg03310.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-calcite-development/msg03310.html on line 170
Call Stack
#TimeMemoryFunctionLocation
10.0006368792{main}( ).../msg03310.html:0