[ https://issues.apache.org/jira/browse/IMPALA-12717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noemi Pap-Takacs updated IMPALA-12717: -------------------------------------- Description: HdfsTableSink::Prepare throws an error if the table descriptor is missing. The error message should be something like: ‘ERROR: Failed to get table descriptor for table id: 0’ Instead it looks like: ‘ERROR: 0ailed to get table descriptor for table id:’ It happens because stringstream operator << overwrites the string in the constructor, in this case the beginning of the message with the table id. See: [Difference between constructor and operator << |https://stackoverflow.com/questions/49704052/c-stdstringstream-operator-vs-constructor] It would be nice to fix these error messages in the Backend. was: HdfsTableSink::Prepare throws an error if the table descriptor is missing. The error message should be something like: ‘ERROR: Failed to get table descriptor for table id: 0’ Instead it looks like: ‘ERROR: 0ailed to get table descriptor for table id:’ It is likely because of incorrect stringstream usage, overwriting the beginning of the message with the table id. > Fix error message for missing table descriptor in hdfs-table-sink.cc > -------------------------------------------------------------------- > > Key: IMPALA-12717 > URL: https://issues.apache.org/jira/browse/IMPALA-12717 > Project: IMPALA > Issue Type: Bug > Components: be > Reporter: Noemi Pap-Takacs > Priority: Minor > Labels: ErrorMessage, error_message_improvement > > HdfsTableSink::Prepare throws an error if the table descriptor is missing. > The error message should be something like: ‘ERROR: Failed to get table > descriptor for table id: 0’ > Instead it looks like: ‘ERROR: 0ailed to get table descriptor for table id:’ > It happens because stringstream operator << overwrites the string in the > constructor, in this case the beginning of the message with the table id. > See: [Difference between constructor and operator << > |https://stackoverflow.com/questions/49704052/c-stdstringstream-operator-vs-constructor] > It would be nice to fix these error messages in the Backend. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org For additional commands, e-mail: issues-all-h...@impala.apache.org