Skip to content

feat(nimble): Add column-pruning Deserializer overload (#975)#975

Closed
duxiao1212 wants to merge 1 commit into
facebookincubator:mainfrom
duxiao1212:export-D112019764
Closed

feat(nimble): Add column-pruning Deserializer overload (#975)#975
duxiao1212 wants to merge 1 commit into
facebookincubator:mainfrom
duxiao1212:export-D112019764

Conversation

@duxiao1212

@duxiao1212 duxiao1212 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary:

Adds a column-pruning Deserializer constructor that accepts selected Velox Subfields and builds a reader tree for only those Row fields.

So that deserializer can directly uses as

weightDeserializer = std::make_unique<nimble::Deserializer>(
        nimbleInputSchema_,
        buildWeightProjectSubfields(),
        newState->leafPool.get(),
        weightSelectorOptions,
        weightDeserializerOptions);
  }
...
nimble.weightDeserializer->deserialize(rawValues, nimble.weightVector);

Differential Revision: D112019764

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 17, 2026
@meta-codesync

meta-codesync Bot commented Jul 17, 2026

Copy link
Copy Markdown

@duxiao1212 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D112019764.

@meta-codesync meta-codesync Bot changed the title feat(nimble): Add column-pruning Deserializer overload feat(nimble): Add column-pruning Deserializer overload (#975) Jul 17, 2026
duxiao1212 added a commit to duxiao1212/nimble that referenced this pull request Jul 17, 2026
…ator#975)

Summary:


Adds a column-pruning Deserializer constructor that accepts selected Velox Subfields and builds a reader tree for only those Row fields.

So that deserializer can directly uses as 
```
weightDeserializer = std::make_unique<nimble::Deserializer>(
        nimbleInputSchema_,
        newState->leafPool.get(),
        buildWeightProjectSubfields(),
        weightSelectorOptions,
        weightDeserializerOptions);
  }
...
nimble.weightDeserializer->deserialize(rawValues, nimble.weightVector);
```

Differential Revision: D112019764
duxiao1212 added a commit to duxiao1212/nimble that referenced this pull request Jul 17, 2026
…ator#975)

Summary:


Adds a column-pruning Deserializer constructor that accepts selected Velox Subfields and builds a reader tree for only those Row fields.

So that deserializer can directly uses as 
```
weightDeserializer = std::make_unique<nimble::Deserializer>(
        nimbleInputSchema_,
        buildWeightProjectSubfields(),
        newState->leafPool.get(),
        weightSelectorOptions,
        weightDeserializerOptions);
  }
...
nimble.weightDeserializer->deserialize(rawValues, nimble.weightVector);
```

Differential Revision: D112019764
duxiao1212 added a commit to duxiao1212/nimble that referenced this pull request Jul 17, 2026
…ator#975)

Summary:


Adds a column-pruning Deserializer constructor that accepts selected Velox Subfields and builds a reader tree for only those Row fields.

So that deserializer can directly uses as 
```
weightDeserializer = std::make_unique<nimble::Deserializer>(
        nimbleInputSchema_,
        buildWeightProjectSubfields(),
        newState->leafPool.get(),
        weightSelectorOptions,
        weightDeserializerOptions);
  }
...
nimble.weightDeserializer->deserialize(rawValues, nimble.weightVector);
```

Differential Revision: D112019764
duxiao1212 added a commit to duxiao1212/nimble that referenced this pull request Jul 17, 2026
…ator#975)

Summary:


Adds a column-pruning Deserializer constructor that accepts selected Velox Subfields and builds a reader tree for only those Row fields.

So that deserializer can directly uses as 
```
weightDeserializer = std::make_unique<nimble::Deserializer>(
        nimbleInputSchema_,
        buildWeightProjectSubfields(),
        newState->leafPool.get(),
        weightSelectorOptions,
        weightDeserializerOptions);
  }
...
nimble.weightDeserializer->deserialize(rawValues, nimble.weightVector);
```

Differential Revision: D112019764
duxiao1212 added a commit to duxiao1212/nimble that referenced this pull request Jul 17, 2026
…ator#975)

Summary:


Adds a column-pruning Deserializer constructor that accepts selected Velox Subfields and builds a reader tree for only those Row fields.

So that deserializer can directly uses as 
```
weightDeserializer = std::make_unique<nimble::Deserializer>(
        nimbleInputSchema_,
        buildWeightProjectSubfields(),
        newState->leafPool.get(),
        weightSelectorOptions,
        weightDeserializerOptions);
  }
...
nimble.weightDeserializer->deserialize(rawValues, nimble.weightVector);
```

Differential Revision: D112019764
…ator#975)

Summary:


Adds a column-pruning Deserializer constructor that accepts selected Velox Subfields and builds a reader tree for only those Row fields.

So that deserializer can directly uses as 
```
weightDeserializer = std::make_unique<nimble::Deserializer>(
        nimbleInputSchema_,
        buildWeightProjectSubfields(),
        newState->leafPool.get(),
        weightSelectorOptions,
        weightDeserializerOptions);
  }
...
nimble.weightDeserializer->deserialize(rawValues, nimble.weightVector);
```

Differential Revision: D112019764
@meta-codesync meta-codesync Bot closed this in c8baf7c Jul 17, 2026
@meta-codesync meta-codesync Bot added the Merged label Jul 17, 2026
@meta-codesync

meta-codesync Bot commented Jul 17, 2026

Copy link
Copy Markdown

This pull request has been merged in c8baf7c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants