Skip to content

colnames Error  #12

@lengyuyeke

Description

@lengyuyeke

In "RImpala/src/R/RImpala.R" this file,
at 47 rows
onlyData = data.frame(result[3:nrow(result),],stringsAsFactors=FALSE,row.names=NULL)
when the result has 3 rows ,result[3:nrow(result),] will return a object with one dimension witch is not a matrix,then the next code
colnames(onlyData)=colNames
will result a error .
So,the solution will be result[3:nrow(result),,drop=F] which will return a matrix no matter how many rows in result .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions