17

Much appreciated if anyone can provide a reference to this clause. I have been searching online with little luck.

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
Da Qi
  • 615
  • 5
  • 10

2 Answers2

3

It does nothing. There is nothing in the code of the serde that reads the path property – and as far as I can tell there has never been. This is probably documentation that has been handed down generation by generation from the earliest Hive examples.

Theo
  • 131,503
  • 21
  • 160
  • 205
  • I know it is used by HiveWarehouseConnector when you try to query hive tables with SparkSQL. – MBillau Jul 09 '20 at 20:56
  • 1
    The context here is Amazon Athena, where it does nothing. It's a serde property and the code for the serde in question does not contain any references to the property. – Theo Jul 10 '20 at 06:55
2

I contacted Amazon with this:

There is some documentation that says: with serdeproperties ( 'paths'='requestBeginTime, adId, impressionId, referrer, userAgent, userCookie, ip' ) This stackoverflow: What does "WITH SERDEPROPERTIES ( 'paths' = 'key1, key2, key3') " really do in Hive DDL json serde? Seems to say that is not needed. Can you remove it or explain it?

and they replied:

Thanks for your feedback. I confirmed that the WITH SERDEPROPERTIES line is not required for the example documented. We’ll get the line removed. Thanks once again for your help in improving the Athena documentation.

markthegrea
  • 3,731
  • 7
  • 55
  • 78