I\'m trying to migrate some code from Transact-SQL from Azure Stream Analytics to a local environment, by now I tried pyspark but with any results that satisfies the requirement