As I was working with the last SE data dump, I noticed that there are PostLinks that reference posts that do not exist.
As an example, in opensource.meta PostLinks.xml there is a row:
<row Id="330" CreationDate="2015-06-25T20:35:59.847" PostId="130" RelatedPostId="93" LinkTypeId="1" />
However, when I look in the Posts.xml file, there are no search results for Id="93"
.
A quick query in SEDE shows that it is pointing to a deleted question.
SELECT *
FROM PostsWithDeleted
WHERE Id = 93
The same situation occurs with PostId
in Votes.xml
and AcceptedAnswerId
in Posts.xml
. Here is a quick SEDE query to demonstrate the latter: https://data.stackexchange.com/serverfault/query/1853165
I believe either deleted posts should be included in the data dump, or the PostLinks should not include links to deleted posts.
Edit: I also noticed a similar situation for Badges in Mathematics. They are pointing to Users that do not exist. https://data.stackexchange.com/math/query/1853349
Edit2: Also in Mathematics: a post owned by a user id that does not exist: https://data.stackexchange.com/math/query/1853355/
Edit3: There is a user that is in Mathematics SEDE but not in the dump. User Id 1308569 is available in SEDE, but I can't find it in the dump. cat Users.xml | grep 'Id="1308569"'
returns nothing.