Why does pyspark have a problem with the same sentence on jupyter notebook, but on pycharm?

In the

Linux environment, I run

categoriMap = train.map(lambdax:x[3]).distinct().zipWithIndex().collectAsMap()
In such a sentence, there is no error in the normal operation of jupyter notebook, but not on pycharm. I would like to ask why the wrong content reported by
pycahrm is

.
Jul.07,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e59daf-4556e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e59daf-4556e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?