Skip to content

Commit

Permalink
Access method for partitions not visible when opening table properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
pravesh-sharma authored Sep 18, 2023
1 parent 0f5450c commit 3258851
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ export class PartitionsSchema extends BaseUISchema {
amname: undefined
};
}
}, readonly: function(state) {
return !obj.isNew(state);
},
},{
id: 'is_default', label: gettext('Default'), type: 'switch', cell:'switch',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1824,7 +1824,8 @@ def _partition_type_check(data, row, partitions, partition_name):
'values_to': range_to,
'is_default': is_default,
'is_sub_partitioned': row['is_sub_partitioned'],
'sub_partition_scheme': row['sub_partition_scheme']
'sub_partition_scheme': row['sub_partition_scheme'],
'amname': row['amname']
})
elif data['partition_type'] == 'list':
if row['partition_value'] == 'DEFAULT':
Expand All @@ -1842,7 +1843,8 @@ def _partition_type_check(data, row, partitions, partition_name):
'values_in': range_in,
'is_default': is_default,
'is_sub_partitioned': row['is_sub_partitioned'],
'sub_partition_scheme': row['sub_partition_scheme']
'sub_partition_scheme': row['sub_partition_scheme'],
'amname': row['amname']
})
else:
range_part = row['partition_value'].split(
Expand All @@ -1858,7 +1860,8 @@ def _partition_type_check(data, row, partitions, partition_name):
'values_modulus': range_modulus,
'values_remainder': range_remainder,
'is_sub_partitioned': row['is_sub_partitioned'],
'sub_partition_scheme': row['sub_partition_scheme']
'sub_partition_scheme': row['sub_partition_scheme'],
'amname': row['amname']
})

def get_partitions_sql(self, partitions, schema_diff=False):
Expand Down

0 comments on commit 3258851

Please sign in to comment.