Row#getMap/Set/List with Classes with nested types does not work.

Description

In 2.2 it appears that you can't use getMap/Set/List providing Classes when using nested types since the CodecRegistry cannot find an acceptable codec without the type information:

Alternatively providing TypeTokens does work as expected.

Environment

None

Pull Requests

None

Activity

Show:
Andy Tolbert
August 24, 2015, 4:15 PM

I assume the same will be true for UDTs, Tuples, and get on boundstatements since it shares the same codebase.

Olivier Michallat
December 10, 2015, 1:38 PM

That's expected, you need to provide the full type information.

As your example shows, 2.1 will work with a raw List type, but that's more of a happy accident. With custom codecs, types are more strictly enforced.

Not a Problem

Assignee

Unassigned

Reporter

Andy Tolbert

Labels

None

PM Priority

None

Reproduced in

2.2.0-rc3

Affects versions

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Components

Priority

Major
Configure