Skip to content

Commit

Permalink
[ui-tablebrowser] Fix viewSQL tab for Hive (#3754)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshg999 authored Jun 14, 2024
1 parent c8e07e3 commit e16b7f6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,12 @@ class MetastoreTable {
this.partitions.loading(false);
this.partitions.loaded(true);
}

// Currently checking for Impala and Hive
const viewSqlPropertyColumnNames = new Set(['view original text:', 'original query:']);
const found =
analysis.properties &&
analysis.properties.some(property => {
if (property.col_name.toLowerCase() === 'view original text:') {
if (viewSqlPropertyColumnNames.has(property.col_name.toLowerCase())) {
apiHelper
.formatSql({ statements: property.data_type })
.then(formatResponse => {
Expand Down

0 comments on commit e16b7f6

Please sign in to comment.