# EsSparkSQL.saveToEs join type(urgent)

**URL:** <https://discuss.elastic.co/t/essparksql-savetoes-join-type-urgent/178828>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [April 29, 2019, 3:18am UTC](https://discuss.elastic.co/t/essparksql-savetoes-join-type-urgent/178828 "2019-04-29T03:18:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![001kulou](https://avatars.discourse-cdn.com/v4/letter/0/a5b964/32.png) [@001kulou](https://discuss.elastic.co/u/001kulou)\
**Post date:** [April 29, 2019, 3:18am UTC](https://discuss.elastic.co/t/essparksql-savetoes-join-type-urgent/178828/1 "2019-04-29T03:18:02Z")

</div>

I want to import a sub-document of join type, but the official document does not give an example. The sub-document needs to set name and parame and specify roting.  
"my\_join\_field": {  
"name": "answer",  
"parent": "1"  
}  
How to set these two parameters?  
Can you give an example of EsSparkSQL. saveToEs?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 27, 2019, 3:18am UTC](https://discuss.elastic.co/t/essparksql-savetoes-join-type-urgent/178828/2 "2019-05-27T03:18:04Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
