asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Till (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ASTERIXDB-1532) Need friendlier error msg(s) for open index errors
Date Sat, 20 Aug 2016 00:12:20 GMT

     [ https://issues.apache.org/jira/browse/ASTERIXDB-1532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Till updated ASTERIXDB-1532:
----------------------------
    Assignee: Yingyi Bu

> Need friendlier error msg(s) for open index errors
> --------------------------------------------------
>
>                 Key: ASTERIXDB-1532
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1532
>             Project: Apache AsterixDB
>          Issue Type: Improvement
>          Components: AsterixDB, Error Reporting, Translator - AQL
>         Environment: Very recent binary bits from Apache AsterixDB site
>            Reporter: Michael J. Carey
>            Assignee: Yingyi Bu
>            Priority: Minor
>              Labels: soon
>
> RUN THESE COMMANDS:
> drop dataverse TinySocial if exists;
> create dataverse TinySocial;
> use dataverse TinySocial;
> create type ChirpUserType as { screenName: string }
> create type ChirpMessageType as closed { chirpId: string }
> create type GleambookUserType as { id: int64 }
> create type GleambookMessageType as { messageId: int64 }
> create dataset GleambookUsers(GleambookUserType) primary key id;
> create dataset GleambookMessages(GleambookMessageType) primary key messageId;
> create dataset ChirpUsers(ChirpUserType) primary key screenName;
> create dataset ChirpMessages(ChirpMessageType) primary key chirpId;
> create index gbUserSinceIdx on GleambookUsers(userSince:datetime) enforced;
> create index gbAuthorIdx on GleambookMessages(authorId:int64) type btree enforced;
> create index gbSenderLocIndex on GleambookMessages(senderLocation:point) type rtree enforced;
> create index gbMessageIdx on GleambookMessages(message) type keyword enforced;
> AND YOU'LL GET THIS RESULT:
> Unknown type [message] [AlgebricksException]
> AND IN MY OPINION:
> While 100% accurate, it's really terse - it would be nicer to give an error message such
as the following.  (The same will be true for other things that might pop as errors in Algebricks.)
> The data type for indexed field "message" was not specified but is required when specifying
an index on a field not included in the dataset schema.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message