You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I downloaded the latest package from nuget, but I can't set the StorageOptions in TableOptions on LoadAsync.
using DeltaLake.Runtime;
using DeltaLake.Table;
using Microsoft.AspNetCore.Mvc;
namespace DeltaTest.Controllers
{
[Route("api/delta")]
[ApiController]
public class DeltaController : ControllerBase
{
[HttpGet]
public async Task<IActionResult> Get()
{
var deltaRuntime = new DeltaRuntime(RuntimeOptions.Default);
var deltaTable = await DeltaTable.LoadAsync(
deltaRuntime,
"abfss://[email protected]/branches/people/",
new TableOptions
{
StorageOptions = new Dictionary<string, string>() <- **this is where I get the error**
},
CancellationToken.None);
return Ok(deltaTable);
}
}
}
I noticed this in the TableOptions class
using System.Collections.Generic;
namespace DeltaLake.Table;
//
// Summary:
// Options for creating a new delta table
public class TableOptions
{
//
// Summary:
// Optional version of the table to load
public ulong? Version { get; set; }
//
// Summary:
// A map of string options
public Dictionary<string, string> StorageOptions { get; } = new Dictionary<string, string>(); <- **could you add init/set here?**
//
// Summary:
// Whether or not to load files when building the table
public bool WithoutFiles { get; set; }
//
// Summary:
// Buffer size for log files
public uint? LogBufferSize { get; set; }
}
Could you make the StorageOptions editable on init in the TableOptions class?
The text was updated successfully, but these errors were encountered:
This is in the latest main. However, we haven't pushed a nuget package with the change. @mdrakiburrahman is working on a PR to add async functionality to his latest change. Then we will push out a new package with this change.
For now, the only option is pulling the code locally.
Just an update that I'm working on implementing the Nuget package for an app similar to KDI that works with Event Hub C# SDK and stresses this delta-dotnet package - I plan on finishing that work in the next 3-4 days.
Hi guys,
Thanks for adding the storage options!
I downloaded the latest package from nuget, but I can't set the StorageOptions in TableOptions on LoadAsync.
I noticed this in the TableOptions class
Could you make the StorageOptions editable on init in the TableOptions class?
The text was updated successfully, but these errors were encountered: