1
- using System . CommandLine . Invocation ;
1
+ using System . CommandLine ;
2
+ using System . CommandLine . Invocation ;
2
3
using System . CommandLine . IO ;
3
4
using Dax . Metadata ;
4
5
using Dax . Model . Extractor ;
@@ -23,6 +24,9 @@ public async Task<int> InvokeAsync(InvocationContext context)
23
24
var overwrite = context . ParseResult . GetValueForOption ( OverwriteOption ) ;
24
25
var excludeTom = context . ParseResult . GetValueForOption ( ExcludeTomOption ) ;
25
26
var excludeVpa = context . ParseResult . GetValueForOption ( ExcludeVpaOption ) ;
27
+ var directQueryMode = context . ParseResult . GetValueForOption ( DirectQueryModeOption ) ;
28
+ var directLakeMode = context . ParseResult . GetValueForOption ( DirectLakeModeOption ) ;
29
+ var columnBatchSize = context . ParseResult . GetValueForOption ( ColumnBatchSizeOption ) ;
26
30
27
31
using var vpaxStream = new MemoryStream ( ) ;
28
32
@@ -34,9 +38,10 @@ public async Task<int> InvokeAsync(InvocationContext context)
34
38
applicationName : extractorAppName ,
35
39
applicationVersion : extractorAppVersion ,
36
40
readStatisticsFromData : true ,
37
- sampleRows : 0 , // RI violation sampling is not applicable to VPAX files
38
- analyzeDirectQuery : true ,
39
- analyzeDirectLake : DirectLakeExtractionMode . Full
41
+ sampleRows : 0 , // not applicable for VPAX export
42
+ analyzeDirectQuery : directQueryMode != DirectQueryExtractionMode . None ,
43
+ analyzeDirectLake : directLakeMode ,
44
+ statsColumnBatchSize : columnBatchSize
40
45
) ;
41
46
42
47
var vpaModel = excludeVpa ? null : new ViewVpaExport . Model ( daxModel ) ;
0 commit comments