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

[c++] Hide internal dimensions #3266

Open
wants to merge 5 commits into
base: xan/geometry_cast_util
Choose a base branch
from

Conversation

XanthosXanthopoulos
Copy link
Collaborator

@XanthosXanthopoulos XanthosXanthopoulos commented Oct 31, 2024

Geometry dataframe creates some extra internal dimensions to support spatial indexing. When returning back the index column names and arrow schema these dimensions (being implementation-specific) should be hidden and replaces with soma_geometry as index column.

Additionally setting a range for spatial axes should only need the axis name and not the internal index names.

Comment on lines 247 to 248
std::shared_ptr<Context> ctx,
std::shared_ptr<Array> tiledb_array);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you can change the implementation so these are passed as const references instead of pointers without too much pain.

…ing an array for read unless explicity specify them
Copy link
Member

@johnkerl johnkerl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include in this PR's description some copy/paste of:

  • Example use of how the user might keystroke out the index_column_names and domain at create
    • Either for SOMAGeometryDataFrame.create, and/or
    • For an ingestion step at the experiment level
  • What domain might look like when they read it back

Also:

@@ -229,6 +229,22 @@ class ArrowAdapter {
static std::unique_ptr<ArrowSchema> arrow_schema_from_tiledb_array(
std::shared_ptr<Context> ctx, std::shared_ptr<Array> tiledb_array);

/**
* @brief Create a an ArrowSchema from TileDB Dimension
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @brief Create a an ArrowSchema from TileDB Dimension
* @brief Create an ArrowSchema from TileDB Dimension

const Dimension& dimension);

/**
* @brief Create a an ArrowSchema from TileDB Attribute
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @brief Create a an ArrowSchema from TileDB Attribute
* @brief Create an ArrowSchema from TileDB Attribute

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

Successfully merging this pull request may close these issues.

3 participants