Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
在笔记本使用scala spark读取文件数据,然后转成定义的Employee类,报错:无法为内部类编码,解决方案是把Employee类移出父类,可是笔记本是集成环境,没法移了。也尝试过用'Encoders.bean'方法为类提提供编码器也不行
Hello @Chronic ,
As requested by @v-nikhilan-msft , please do post the ask in english .
I was bale to see the exception in the snaphsot and i am assuming your ask is around that .
May I request you to use the below code and see if that helps ?
org.apache.spark.sql.catalyst.encoders.OuterScopes.addOuterScope(this);
Thanks
Himanshu
Can you write it down in detail? I don't really understand
Hi @Chronic
Thanks for using Fabric community.
Apologies for the issue you have been facing. It's difficult to tell what could be the reason for this performance.
If the issue still persists, please reach out to our support team so they can do a more thorough investigation on why this is happening.
Please go ahead and raise a support ticket to reach our support team:
https://support.fabric.microsoft.com/support
After creating a Support ticket please provide the ticket number as it would help us to track for more information.
Thanks.
Hi @Chronic
We haven’t heard from you on the last response and was just checking back to see if you got a chance to create a support ticket. If yes please provide the details here.
Otherwise, will respond back with the more details and we will try to help.
Thanks
Thanks!scala spark is used in the laptop to read file data, and then converted to the defined Employee class, error: cannot code for the internal class, the solution is to move the Employee class out of the parent class, but the laptop is an integrated environment, can not move. Attempts to provide an encoder for class references using the 'Encoders.bean' method also failed
Hi @Chronic
Thanks for using Fabric Community. Our community thrives on open communication and collaboration, and for that to happen effectively, we encourage everyone to use English for their questions and discussions. This ensures everyone can understand and participate, regardless of their native language.
Would you be comfortable rephrasing your question in English? We will definitely try to help.
Thanks.
User | Count |
---|---|
39 | |
10 | |
4 | |
3 | |
2 |
User | Count |
---|---|
48 | |
16 | |
7 | |
6 | |
5 |