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

presto does not support redash when source is hive and external table exists #11907

Closed
derekennui opened this issue Nov 13, 2018 · 1 comment
Closed

Comments

@derekennui
Copy link

derekennui commented Nov 13, 2018

When I run the query

SELECT table_schema, table_name, column_name
FROM hive.information_schema.columns
WHERE table_schema NOT IN ('pg_catalog', 'information_schema')

it reports error
failed: outputFormat should not be accessed from a null StorageFormat

I found the error in source code in com.facebook.presto.hive.metastore.StorageFormat,change the code

public String getOutputFormat()
{
if (outputFormat == null) {
return "null";
//throw new IllegalStateException("outputFormat should not be accessed from a null StorageFormat");
}
return outputFormat;
}

It works.

I'm not gonna query hive external table, but if I don't change the code above, I can't config the redash hive source.

@derekennui derekennui changed the title presto does not support redash when source is hive and external table existsoutputFormat should not be accessed from a null StorageFormat presto does not support redash when source is hive and external table exists Nov 13, 2018
@kokosing
Copy link
Contributor

It looks like duplicate of #6972

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

2 participants