Disclosed herein are compounds of formula (I), wherein the substituents are as defined within the specification, processes for their preparation, compositions comprising said compounds and uses thereof. Said compounds are useful as G protein-coupled receptor 119 (GPR119) agonist and as such is useful in the treatment of diabetes or obesity. Specifically preferred compounds include: 5-[1-(2-fluoro-2-methyl-propyl)-piperidin-4-ylmethoxy]-1'methanesulfonyl-1',2',3 ',6'-tetrahydro-[2,4']bipyridinyl; 1-methanesulfonyl-4-{ 4-[ 1-(1-trifluoromethyl-cyclopropylmethyl)-piperidin-4-ylmethoxy ]-phenyl} -1,2,3,6-tetrahydro-pyridine.