Plumbing Questions? Ask a Plumber and Get Answers ASAP.
Welcome to Just Answer, my name is ***** ***** I will do my best to help you with your issue. First I’ll need some more info so I have a more complete picture of you situation.
Is the fire place being used or will it be used?
Then you description is confusing/unclear. The pipe can't be in an active fire box but it's common practice to come up through the brick floor of a masonry fire place to feed a gas log. You mention a stove so that's what doesn't compute.
You can't bury a union connection to a flex. It has to be above the floor. It sounds like you have a gas cock that accessible in the same space so you're OK there.