Stack Overflow Asked by You Hock Tan on January 1, 2022
I am using azure-cosmosdb-spark
library for scala and I was trying to query the following
select top 1 * from c
but I gotten the final dataframe count to be 8 instead of 1. I suspect that the CosmosDBRDDIterator
splits it into multiple partitions (in this case 8) and processed the query.
The result count will always be 8x the count of the actual results regardless the select query executed.
Is there any way I can avoid this and get my actual count as 1?
Tried limit
instead of top
?
select * from c limit 1
Answered by Adrian Bona on January 1, 2022
1 Asked on December 9, 2021 by andrii-yakymyshyn
arrays destructuring ecmascript 6 javascript javascript objects
3 Asked on December 9, 2021 by saleh
3 Asked on December 9, 2021 by locobe
1 Asked on December 9, 2021
0 Asked on December 9, 2021 by thorolin
1 Asked on December 9, 2021 by bibout182
1 Asked on December 9, 2021 by tushar-jain
3 Asked on December 9, 2021 by user11880529
2 Asked on December 9, 2021 by hiedeptrai
4 Asked on December 9, 2021 by maqsud-inamdar
2 Asked on December 9, 2021 by m0a
2 Asked on December 9, 2021 by toge
1 Asked on December 9, 2021
Get help from others!
Recent Answers
Recent Questions
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP