Repository navigation
#3402 Fix empty GEXF export when a column is a TimestampSet or IntervalSet - #3403
Merged
mbastian merged 1 commit intoNov 21, 2026
Merged
Conversation
…ephi#3402) ExporterGEXF treated every column where isDynamic() is true as a TimeMap. A regular attribute column of type TimestampSet or IntervalSet is also dynamic, so AttributeUtils.getStaticType threw, execute() logged it, and the exported file was empty. The exporter now uses isDynamicAttribute() where it means a value per time, and writes a time-set column as a string attribute holding its text form, as the spreadsheet exporter does. Adds two tests in GEXFTest that fail without the change.
mbastian
approved these changes
Nov 21, 2026
mbastian
left a comment
Member
There was a problem hiding this comment.
Thanks. I also added a GEXF issue as we may actually want to add that to the schema gephi/gexf#33
3 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #3402: GEXF export writes an empty file when a column is a
TimestampSetorIntervalSet.Cause.
Column.isDynamic()is true both forTimeMapcolumns (a value per time) and forTimeSetcolumns (a set of times).ExporterGEXFtreated every dynamic column as aTimeMap, so for a regular attribute column of typeTimestampSetthe call toAttributeUtils.getStaticTypethrewIllegalArgumentException: Unsupported type org.gephi.graph.api.types.TimestampSet.execute()logs the exception, so the export ended with an empty document and no visible error. A spreadsheet edge list with a date column imports with exactly such a column.Fix. The exporter uses
isDynamicAttribute()where it means a value per time. A time-set column is declared as a staticstringattribute, and its value is written as text in the graph's time format (<[3.0, 6.0]>), which is what the spreadsheet exporter already writes for the same column. GEXF has no attribute type for a set of times. Thetimesetproperty is unchanged and is still written astimestamp,start/endor<spells>.Test.
GEXFTest.testTimestampSetColumncompares against a new expected file,gexf/timestampset_column.gexf, andtestTimestampSetColumnDynamicGraphchecks the column next to thetimesetproperty. Both fail on master with the exception above. The ExportPlugin tests pass with checkstyle (42 tests).Not changed.
execute()still swallows exceptions, so other export failures remain silent.IntervalSettakes the same path but has no test of its own:GraphGenerator.addIntervalSetColumndeclares its column asTimestampSet, and I did not want to change the shared generator here.Checklist
Added tests?
Added to documentation?
The diagnosis, the fix, and the tests above were worked out together with Claude Code. I built, ran, and verified everything on my own machine, and I am happy to re-run any of it.