Re: Reasoning behind fail safe behaviour of cast expression

2020-03-19 Thread vatsal
The example query didn't get posted in the previous email. Adding it here: > spark.sql("select cast((id || 'name') as int) from range(10) ").show > +-+ |CAST(concat(CAST(id AS STRING), name) AS INT)| +-+ |

Reasoning behind fail safe behaviour of cast expression

2020-03-18 Thread vatsal
I noticed that Spark handles CAST operation in fail-safe manner. i.e. if the casting operation will fail for some record(s), Spark doesn't fail the entire query instead it returns null data value for those failures. For example following query: Looking at the code it seems that this behavior

Fwd: How to specify number of Partition using newAPIHadoopFile()

2019-04-30 Thread Vatsal Patel
spark-core_2.11 - AVRO VERSION - 1.8.2 Please help us understand, why this issue is coming? Thanks, Vatsal

RE: Disable queuing of spark job on Mesos cluster if sufficient resources are not found

2017-05-29 Thread Mevada, Vatsal
Is there any configurable timeout which controls queuing of the driver in Mesos cluster mode or the driver will remain in queue for indefinite until it find resource on cluster? From: Michael Gummelt [mailto:mgumm...@mesosphere.io] Sent: Friday, May 26, 2017 11:33 PM To: Mevada, Vatsal <

Disable queuing of spark job on Mesos cluster if sufficient resources are not found

2017-05-26 Thread Mevada, Vatsal
of queuing up) if sufficient resources are not found on Mesos cluster? Regards, Vatsal

Replying same post with proper formatting. - sorry for extra mail

2016-09-30 Thread vatsal
In my Spark Streaming application I am reading data from certain Kafka topic. While reading from topic whenever I encounter certain message (for example: "poison") I want to stop the streaming. Currently I am achieving this using following code: jsc is instance of JavaStreamingContext and

Stopping spark steaming context on encountering certain type of message on Kafka

2016-09-30 Thread vatsal
In my Spark Streaming application I am reading data from certain Kafka topic. While reading from topic whenever I encounter certain message (for example: "poison") I want to stop the streaming. Currently I am achieving this using following code: jsc is instance of JavaStreamingContext and