How do i ignore line “”length of fields (%d)“ % (len(obj), len(dataType.fields)))” in pyspark











up vote
-3
down vote

favorite












I am trying to fix this issue where i am getting



"length of fields (%d)" % (len(obj), len(dataType.fields)))
ValueError: Length of object (200) does not match with length of fields (300)


My question now is how do I ignore this line in pyspark.










share|improve this question
























  • Why not fixing the error in the first place?
    – toti08
    Nov 7 at 13:35










  • data which i have is in utf8 format , I decoded it using (utf-8, 'ignore') but still because of certain lines i am not able to process it in pyspark. hence i am getting above error.
    – Shane
    Nov 7 at 13:57















up vote
-3
down vote

favorite












I am trying to fix this issue where i am getting



"length of fields (%d)" % (len(obj), len(dataType.fields)))
ValueError: Length of object (200) does not match with length of fields (300)


My question now is how do I ignore this line in pyspark.










share|improve this question
























  • Why not fixing the error in the first place?
    – toti08
    Nov 7 at 13:35










  • data which i have is in utf8 format , I decoded it using (utf-8, 'ignore') but still because of certain lines i am not able to process it in pyspark. hence i am getting above error.
    – Shane
    Nov 7 at 13:57













up vote
-3
down vote

favorite









up vote
-3
down vote

favorite











I am trying to fix this issue where i am getting



"length of fields (%d)" % (len(obj), len(dataType.fields)))
ValueError: Length of object (200) does not match with length of fields (300)


My question now is how do I ignore this line in pyspark.










share|improve this question















I am trying to fix this issue where i am getting



"length of fields (%d)" % (len(obj), len(dataType.fields)))
ValueError: Length of object (200) does not match with length of fields (300)


My question now is how do I ignore this line in pyspark.







python pyspark aws-glue






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 7 at 15:18









blue-phoenox

3,08181438




3,08181438










asked Nov 7 at 13:33









Shane

1




1












  • Why not fixing the error in the first place?
    – toti08
    Nov 7 at 13:35










  • data which i have is in utf8 format , I decoded it using (utf-8, 'ignore') but still because of certain lines i am not able to process it in pyspark. hence i am getting above error.
    – Shane
    Nov 7 at 13:57


















  • Why not fixing the error in the first place?
    – toti08
    Nov 7 at 13:35










  • data which i have is in utf8 format , I decoded it using (utf-8, 'ignore') but still because of certain lines i am not able to process it in pyspark. hence i am getting above error.
    – Shane
    Nov 7 at 13:57
















Why not fixing the error in the first place?
– toti08
Nov 7 at 13:35




Why not fixing the error in the first place?
– toti08
Nov 7 at 13:35












data which i have is in utf8 format , I decoded it using (utf-8, 'ignore') but still because of certain lines i am not able to process it in pyspark. hence i am getting above error.
– Shane
Nov 7 at 13:57




data which i have is in utf8 format , I decoded it using (utf-8, 'ignore') but still because of certain lines i am not able to process it in pyspark. hence i am getting above error.
– Shane
Nov 7 at 13:57

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53190499%2fhow-do-i-ignore-line-length-of-fields-d-lenobj-lendatatype-fields%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53190499%2fhow-do-i-ignore-line-length-of-fields-d-lenobj-lendatatype-fields%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Hercules Kyvelos

Tangent Lines Diagram Along Smooth Curve

Yusuf al-Mu'taman ibn Hud