Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble Partitioning my Amazon Spectrum Table

Getting this error in particular:

ERROR: Error when calling external catalog API: The number of partition keys do not match the number of partition values

like image 876
Aviv Goldgeier Avatar asked Jan 03 '23 16:01

Aviv Goldgeier


1 Answers

Just posting this because googling that error turned nothing up. This can happen when you ALTER TABLE ADD PARTITION on an external table created without the PARTITIONED BY clause.

Read this for details: CREATE EXTERNAL TABLE docs. In retrospect, you, like me, should have read this before trying this command.

like image 162
Aviv Goldgeier Avatar answered Jan 14 '23 12:01

Aviv Goldgeier