"Unknown type: geometry" when creating a view in "Athena engine version 3"

1

When creating a view (in a Glue Catalog Database) which uses geometric functions using Athena engine version 3, I get the error Unknown type: geometry. Using "Athena engine version 2" I don't get an error.

Example query:

CREATE VIEW test_view1 AS 
SELECT * FROM (Values (1)) as t(id) 
WHERE ST_CONTAINS(ST_GeometryFromText('POLYGON((0 2,1 1,0 -1,0 2))'), ST_Point(0.9, 1))

Note: This is a simplified query to be able to quickly reproduce the error. The error message is also shown when using an existent table instead of (Values (1)) as t(id) or when reading the values ('POLYGON((0 2,1 1,0 -1,0 2))', 0.9, 1) from other tables or when using other functions but ST_CONTAINS.

When running:

SELECT ST_CONTAINS(ST_GeometryFromText('POLYGON((0 2,1 1,0 -1,0 2))'), ST_Point(0.9, 1))

The result is "true" as expected. Creating views without geometric functions also works.

Also when creating the view directly locally in Trino version 398 (using docker run --name trino -d -p 8080:8080 trinodb/trino:398) in the predefined memory catalog, this error is not displayed.

Can those geometric functions somehow be used when creating views using Athena 3 in a Glue Catalog Database?

질문됨 일 년 전380회 조회
1개 답변
0
수락된 답변

It works now. Looks like the Bug has been fixed.

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠