-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Issue Summary
The dataset schema commands have different availability and requirements that can cause confusion for users. This issue documents the current status and limitations.
Command Status Overview
🔴 pltr dataset schema get - Limited Availability
- Status: Requires API preview access
- Error: Fails with
ApiFeaturePreviewUsageOnlyfor most users - Root Cause: Uses SDK's
Dataset.get_schema()method which requires special permissions
🟢 pltr dataset schema set - Working
- Status: Works normally for all users
- Functionality: Can set schemas from CSV inference, JSON strings, or JSON files
- Implementation: Uses SDK's
Dataset.put_schema()which has no preview restrictions
🟢 pltr dataset schema apply - Working
- Status: Works normally for all users (added in PR Add dataset schema apply command to bypass SDK preview restrictions #78)
- Functionality: Infers and applies schema using same API as Foundry UI
- Implementation: Direct API calls to
/foundry-schema-inference/apiendpoint
Impact on Users
Users WITHOUT preview API access:
- ❌ Cannot read existing schemas (
getfails) - ✅ Can set/update schemas (
setworks) - ✅ Can infer/apply schemas (
applyworks)
Users WITH preview API access:
- ✅ All commands work normally
Examples
Working Commands
# Apply/infer schema (works for everyone)
pltr dataset schema apply ri.foundry.main.dataset.123
# Set schema from CSV (works for everyone)
pltr dataset schema set ri.foundry.main.dataset.123 --from-csv data.csv
# Set schema from JSON (works for everyone)
pltr dataset schema set ri.foundry.main.dataset.123 --json '{"fieldSchemaList":[...]}'Limited Command
# Get existing schema (requires preview access)
pltr dataset schema get ri.foundry.main.dataset.123
# ERROR: ApiFeaturePreviewUsageOnly (for users without preview access)Workarounds
- Instead of
get→ Useapplyto infer current schema from data - For schema inspection → Use Foundry UI or request preview API access
- For automated workflows → Use
setandapplycommands which work reliably
Technical Details
- The
get_schemalimitation is at the Foundry API level, not a CLI issue - The
apply_schemacommand was specifically created to work around this limitation - The same API endpoint used by
applyis what powers the "Apply Schema" button in Foundry UI
Related
- PR Add dataset schema apply command to bypass SDK preview restrictions #78: Add dataset schema apply command to bypass SDK preview restrictions
- Original error:
ApiFeaturePreviewUsageOnlywhen callingDataset.get_schema()
Next Steps
- Consider adding warning messages back to
get_schemacommand - Update documentation to clarify command availability
- Monitor for SDK updates that might remove preview restrictions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation