读取Mongodb视图错误Namespace Original_Data.gy_ypgwml_View is a view, not a collection
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 5.7k
- PR merge metrics
- No merged PRs in 30d
Description
> 2025-01-03 10:12:00 [AnalysisStatistics.analysisStatisticsLog-53] com.mongodb.MongoCommandException: Command failed with error 166: 'Namespace Original_Data.gy_ypgwml_View is a view, not a collection' on server 192.168.33.7:27017. The full response is { "ok" : 0.0, "errmsg" : "Namespace Original_Data.gy_ypgwml_View is a view, not a collection", "code" : 166, "codeName" : "CommandNotSupportedOnView" }
```json
{
"reader": {
"name": "mongodbreader",
"parameter": {
"address": [
"192.168.33.7:27017"
],
"userName": "original_data",
"userPassword": "iDPKq_8RwceJeqjqpfhb",
"dbName": "Original_Data",
"collectionName": "gy_ypgwml_View",
"query": {},
"column": [
{
"name": "剂型",
"type": "String"
}
]
}
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reported mongodbreader configuration and reproduce the CommandNotSupportedOnView error against the named MongoDB view. Determine whether view reading is expected to be supported and identify the required scope from the issue; done should be a clear resolution for reading gy_ypgwml_View or a documented limitation and workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, mongodb
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100