File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ class TKikhouseDescribeTableRPC : public TActorBootstrapped<TKikhouseDescribeTab
228
228
void ResolveShards (const NActors::TActorContext& ctx) {
229
229
auto & entry = ResolveNamesResult->ResultSet .front ();
230
230
231
- if (entry.TableId .IsSystemView ()) {
231
+ if (entry.TableId .IsSystemView () || entry. Kind == NSchemeCache::TSchemeCacheNavigate::KindSysView ) {
232
232
// Add fake shard for sys view
233
233
auto * p = Result.add_partitions ();
234
234
p->set_tablet_id (1 );
Original file line number Diff line number Diff line change @@ -230,9 +230,9 @@ class TReadColumnsRPC : public TActorBootstrapped<TReadColumnsRPC> {
230
230
ctx);
231
231
}
232
232
233
- if (ResolveNamesResult-> ResultSet . front (). TableId .IsSystemView ()) {
233
+ if (entry. TableId .IsSystemView () || entry. Kind == NSchemeCache::TSchemeCacheNavigate::KindSysView ) {
234
234
return ScanSystemView (ctx);
235
- } if (TryParseLocalDbPath (ResolveNamesResult-> ResultSet . front () .Path )) {
235
+ } if (TryParseLocalDbPath (entry .Path )) {
236
236
return ScanLocalDbTable (ctx);
237
237
} else {
238
238
return ResolveShards (ctx);
Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ class TReadRowsRPC : public TActorBootstrapped<TReadRowsRPC> {
385
385
OwnerId = entry.Self ->Info .GetSchemeshardId ();
386
386
TableId = entry.Self ->Info .GetPathId ();
387
387
388
- if (entry.TableId .IsSystemView ()) {
388
+ if (entry.TableId .IsSystemView () || entry. Kind == NSchemeCache::TSchemeCacheNavigate::KindSysView ) {
389
389
return ReplyWithError (Ydb::StatusIds::SCHEME_ERROR,
390
390
Sprintf (" Table '%s' is a system view. ReadRows is not supported." , GetTable ().c_str ()));
391
391
}
@@ -592,7 +592,7 @@ class TReadRowsRPC : public TActorBootstrapped<TReadRowsRPC> {
592
592
}
593
593
case NScheme::NTypeIds::Decimal: {
594
594
return NYdb::TTypeBuilder ().Decimal (NYdb::TDecimalType (
595
- typeInfo.GetDecimalType ().GetPrecision (),
595
+ typeInfo.GetDecimalType ().GetPrecision (),
596
596
typeInfo.GetDecimalType ().GetScale ()))
597
597
.Build ();
598
598
}
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ message Entry {
67
67
VIEW = 20 ;
68
68
RESOURCE_POOL = 21 ;
69
69
TRANSFER = 23 ;
70
+ SYS_VIEW = 24 ;
70
71
}
71
72
72
73
// Name of scheme entry (dir2 of /dir1/dir2)
You can’t perform that action at this time.
0 commit comments