Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab delimited responses are truncated #78

Open
timeoverride opened this issue Feb 16, 2022 · 0 comments
Open

Tab delimited responses are truncated #78

timeoverride opened this issue Feb 16, 2022 · 0 comments

Comments

@timeoverride
Copy link

In my case I'm using MSCK REPAIR TABLE. The request returns a list of partitions I need to manually add (manually in that Athena is unable to automatically add them). I'm writing a small application that will parse the tab delimited query result and add the missing partitions, however the result is being truncated by athena-express in helper.js:249-254.

                    case line.indexOf("\t") > 0:
                        line = line.split("\t");
                        cleanJson.push({
                            [line[0].trim()]: line[1].trim(),
                        });
                        break;                    

It would be great (for me at least) if we could just return the split line. Ex:

                    case line.indexOf("\t") > 0:
                        cleanJson = line.split("\t");
                        break;

I'd like to understand the reason why an object is being pushed to the return array containing the first two values as a key/value pair rather than returning the full value of the tab delimited response.

Thanks in advance.

@timeoverride timeoverride changed the title Tab delimited responses are truncated response is truncated Tab delimited responses are truncated Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant