Closed bolcman closed 4 years ago
@bolcman I ran the following program:
static void Main(string[] args)
{
var spark = SparkSession.Builder().GetOrCreate();
var df = spark.Range(0, 5);
var udf = Functions.Udf<int, string>(id => id.ToString());
df.Select(udf(df["id"])).Show();
df.Show();
}
I tried this with the following combinations: nuget: 0.6.0, worker: 0.6.0 nuget: 0.6.0, worker: 0.7.0 nuget: 0.7.0, worker: 0.6.0 nuget: 0.7.0, worker: 0.7.0, but I couldn't repro the behavior you are facing.
Could you share an isolated repro code, which doesn't depend on your mysql source (json, etc. will be fine)? That will help me debug this issue.
ok, this is strange, I tried your example, got the same error:
nuget: 0.6.0, worker: 0.6.0 - works nuget: 0.7.0, worker: 0.6.0 - works nuget: 0.7.0, worker: 0.7.0 - error nuget: 0.6.0, worker: 0.7.0 - error
@suhsteve @elvaliuliuliu can you try as well? I used Spark 2.4.4 with .NET Core 2.1 worker.
@bolcman can you share the version of spark you are using ?
I have tried the following combination, all work fine for me. I used Spark 2.4.1 with .NET Core 2.1 worker. nuget: 0.7.0, worker: 0.7.0 nuget: 0.6.0, worker: 0.7.0
@bolcman Can you please share the version details and command you use? Thanks!
it works! please ignore this , I downloaded the worker 0.7.0 files again and replaced the version i had.
so this started happening after i switched to 0.7.0: here is my code.
now i switched back to 0.6.0 and it works perfectly, when i tried 0.7.0 again i got the error below.