Skip to content

Commit

Permalink
remove the conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
zorancv committed Jun 27, 2024
1 parent 39d31f3 commit 21b8ba1
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions store/postgres/src/relational/ddl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ use graph::{
};

use crate::block_range::CAUSALITY_REGION_COLUMN;
use crate::{
primary::Namespace,
relational::{
ColumnType, BLOCK_COLUMN, BLOCK_RANGE_COLUMN, BYTE_ARRAY_PREFIX_SIZE, STRING_PREFIX_SIZE,
VID_COLUMN,
},
use crate::relational::{
ColumnType, BLOCK_COLUMN, BLOCK_RANGE_COLUMN, BYTE_ARRAY_PREFIX_SIZE, STRING_PREFIX_SIZE,
VID_COLUMN,
};

use super::{index::IndexList, Catalog, Column, Layout, SqlName, Table};
Expand Down Expand Up @@ -396,11 +393,15 @@ impl Table {
self.create_table(out)?;
self.create_time_travel_indexes(catalog, out)?;
if index_def.is_some() && ENV_VARS.postpone_attribute_index_creation {
let namespace =
Namespace::new(catalog.site.namespace.to_string()).map_err(|_| fmt::Error)?;
let arr = index_def
.unwrap()
.indexes_for_table(&namespace, &self.name.to_string(), &self, false, false)
.indexes_for_table(
&catalog.site.namespace,
&self.name.to_string(),
&self,
false,
false,
)
.map_err(|_| fmt::Error)?;
for (_, sql) in arr {
writeln!(out, "{};", sql).expect("properly formated index statements")
Expand Down

0 comments on commit 21b8ba1

Please sign in to comment.