Skip to content

Add arrow import/export for vortex-json#8339

Merged
AdamGS merged 2 commits into
developfrom
adamg/json-arrow-export
Jun 11, 2026
Merged

Add arrow import/export for vortex-json#8339
AdamGS merged 2 commits into
developfrom
adamg/json-arrow-export

Conversation

@AdamGS

@AdamGS AdamGS commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds import/export from vortex-json to Arrow's JSON canonical extension type.

@AdamGS AdamGS requested a review from a team June 10, 2026 15:26
@AdamGS AdamGS added the changelog/feature A new feature label Jun 10, 2026
@AdamGS AdamGS requested a review from a10y June 10, 2026 15:26
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
@AdamGS AdamGS force-pushed the adamg/json-arrow-export branch from eac53a7 to 5430d3a Compare June 10, 2026 15:30
@codspeed-hq

codspeed-hq Bot commented Jun 10, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 11.93%

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

❌ 1 regressed benchmark
✅ 1531 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation bitwise_not_vortex_buffer_mut[128] 215.3 ns 244.4 ns -11.93%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing adamg/json-arrow-export (a9ded61) with develop (a289c23)

Open in CodSpeed

Comment thread vortex-json/src/arrow.rs Outdated
return Ok(None);
}

let mut field = Field::new(name, DataType::Utf8, dtype.is_nullable());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we always want Utf8? why not stringview?

in my WKB branch I just delegated this to the session

Comment thread vortex-json/src/arrow.rs Outdated
return Ok(None);
}

let storage_dtype = DType::from_arrow(field);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we should not use DType::from_arrow anymore. should probably be deprecated actually. I think you can just use Utf8 directly in this case?

Comment thread vortex-json/src/arrow.rs
return Ok(ArrowImport::Unsupported(array));
}

let storage = ArrayRef::from_arrow(array.as_ref(), field.is_nullable())?;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we should deprecate this as well and use the session

@AdamGS AdamGS Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

mind if I do it in a followup? I'll need to wire the session here

Signed-off-by: Adam Gutglick <adam@spiraldb.com>
@AdamGS AdamGS merged commit 729e17c into develop Jun 11, 2026
68 of 69 checks passed
@AdamGS AdamGS deleted the adamg/json-arrow-export branch June 11, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants